#[repr(transparent)]pub struct MiniSpur { /* private fields */ }
Expand description
A miniature Key utilizing only 16 bits of space
Internally is a NonZeroU16
to allow for space optimizations when stored inside of an Option
Implementations§
source§impl MiniSpur
impl MiniSpur
sourcepub const fn into_inner(self) -> NonZeroU16
pub const fn into_inner(self) -> NonZeroU16
Returns the NonZeroU16
backing the current MiniSpur
Trait Implementations§
source§impl Key for MiniSpur
impl Key for MiniSpur
source§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Returns None
if int
is greater than u16::MAX - 1
source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize
that represents the current keysource§impl Ord for MiniSpur
impl Ord for MiniSpur
source§impl PartialEq<MiniSpur> for MiniSpur
impl PartialEq<MiniSpur> for MiniSpur
source§impl PartialOrd<MiniSpur> for MiniSpur
impl PartialOrd<MiniSpur> for MiniSpur
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