#[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<'de> Deserialize<'de> for MicroSpur
impl<'de> Deserialize<'de> for MicroSpur
source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 moreimpl Copy for MicroSpur
impl Eq for MicroSpur
impl StructuralEq for MicroSpur
impl StructuralPartialEq for MicroSpur
Auto Trait Implementations§
impl RefUnwindSafe for MicroSpur
impl Send for MicroSpur
impl Sync for MicroSpur
impl Unpin for MicroSpur
impl UnwindSafe for MicroSpur
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