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<'de> Deserialize<'de> for MiniSpur
impl<'de> Deserialize<'de> for MiniSpur
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 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 PartialOrd for MiniSpur
impl PartialOrd for MiniSpur
impl Copy for MiniSpur
impl Eq for MiniSpur
impl StructuralPartialEq for MiniSpur
Auto Trait Implementations§
impl Freeze for MiniSpur
impl RefUnwindSafe for MiniSpur
impl Send for MiniSpur
impl Sync for MiniSpur
impl Unpin for MiniSpur
impl UnwindSafe for MiniSpur
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