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§
impl Copy for MicroSpur
Source§impl<'de> Deserialize<'de> for MicroSpur
Available on crate feature serialize only.
impl<'de> Deserialize<'de> for MicroSpur
Available on crate feature
serialize only.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
impl Eq for MicroSpur
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
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
Source§impl PartialOrd for MicroSpur
impl PartialOrd for MicroSpur
impl StructuralPartialEq for MicroSpur
Auto Trait Implementations§
impl Freeze for MicroSpur
impl RefUnwindSafe for MicroSpur
impl Send for MicroSpur
impl Sync for MicroSpur
impl Unpin for MicroSpur
impl UnsafeUnpin 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