Enum Paritytype
#[repr(u8)]pub enum Paritytype {
EVEN = 0,
ODD = 1,
}
Variants§
Implementations§
§impl Paritytype
impl Paritytype
pub const fn from_bits(val: u8) -> Paritytype
pub const fn to_bits(self) -> u8
Trait Implementations§
§impl Clone for Paritytype
impl Clone for Paritytype
§fn clone(&self) -> Paritytype
fn clone(&self) -> Paritytype
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl From<u8> for Paritytype
impl From<u8> for Paritytype
§fn from(val: u8) -> Paritytype
fn from(val: u8) -> Paritytype
Converts to this type from the input type.
§impl Ord for Paritytype
impl Ord for Paritytype
§impl PartialEq for Paritytype
impl PartialEq for Paritytype
§impl PartialOrd for Paritytype
impl PartialOrd for Paritytype
impl Copy for Paritytype
impl Eq for Paritytype
impl StructuralPartialEq for Paritytype
Auto Trait Implementations§
impl Freeze for Paritytype
impl RefUnwindSafe for Paritytype
impl Send for Paritytype
impl Sync for Paritytype
impl Unpin for Paritytype
impl UnwindSafe for Paritytype
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)