#[repr(transparent)]pub struct LargeSpur { /* private fields */ }
Expand description
A key type taking up size_of::<usize>()
bytes of space (generally 4 or 8 bytes)
Internally is a NonZeroUsize
to allow for space optimizations when stored inside of an Option
Implementations§
source§impl LargeSpur
impl LargeSpur
sourcepub const fn into_inner(self) -> NonZeroUsize
pub const fn into_inner(self) -> NonZeroUsize
Returns the NonZeroUsize
backing the current LargeSpur
Trait Implementations§
source§impl<'de> Deserialize<'de> for LargeSpur
impl<'de> Deserialize<'de> for LargeSpur
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 LargeSpur
impl Key for LargeSpur
source§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Returns None
if int
is greater than usize::MAX - 1
source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize
that represents the current keysource§impl Ord for LargeSpur
impl Ord for LargeSpur
source§impl PartialEq<LargeSpur> for LargeSpur
impl PartialEq<LargeSpur> for LargeSpur
source§impl PartialOrd<LargeSpur> for LargeSpur
impl PartialOrd<LargeSpur> for LargeSpur
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 LargeSpur
impl Eq for LargeSpur
impl StructuralEq for LargeSpur
impl StructuralPartialEq for LargeSpur
Auto Trait Implementations§
impl RefUnwindSafe for LargeSpur
impl Send for LargeSpur
impl Sync for LargeSpur
impl Unpin for LargeSpur
impl UnwindSafe for LargeSpur
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