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 duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Paritytype
§impl Debug for Paritytype
impl Debug for Paritytype
impl Eq for Paritytype
§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
§fn cmp(&self, other: &Paritytype) -> Ordering
fn cmp(&self, other: &Paritytype) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for Paritytype
impl PartialEq for Paritytype
§impl PartialOrd for Paritytype
impl PartialOrd 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 UnsafeUnpin 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