#[repr(transparent)]pub struct MicroSpur { /* private fields */ }
Expand description
A miniature Key utilizing only 8 bits of space
Internally is a NonZeroU8
to allow for space optimizations when stored inside of an Option
Implementations§
Trait Implementations§
source§impl Key for MicroSpur
impl Key for MicroSpur
source§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Returns None
if int
is greater than u8::MAX - 1
source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize
that represents the current keysource§impl Ord for MicroSpur
impl Ord for MicroSpur
source§impl PartialEq<MicroSpur> for MicroSpur
impl PartialEq<MicroSpur> for MicroSpur
source§impl PartialOrd<MicroSpur> for MicroSpur
impl PartialOrd<MicroSpur> for MicroSpur
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more