#[repr(u8)]pub enum Paritytype {
EVEN = 0,
ODD = 1,
}
Variants§
Implementations§
Source§impl Paritytype
impl Paritytype
Trait Implementations§
Source§impl Clone for Paritytype
impl Clone for Paritytype
Source§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 moreSource§impl From<Paritytype> for u8
impl From<Paritytype> for u8
Source§fn from(val: Paritytype) -> u8
fn from(val: Paritytype) -> u8
Converts to this type from the input type.
Source§impl From<u8> for Paritytype
impl From<u8> for Paritytype
Source§fn from(val: u8) -> Paritytype
fn from(val: u8) -> Paritytype
Converts to this type from the input type.
Source§impl Ord for Paritytype
impl Ord for Paritytype
Source§fn cmp(&self, other: &Paritytype) -> Ordering
fn cmp(&self, other: &Paritytype) -> Ordering
1.21.0 · 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
Source§impl PartialEq for Paritytype
impl PartialEq for Paritytype
Source§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
)