#[repr(transparent)]pub struct Spur { /* private fields */ }
Expand description
The default key for every Rodeo, uses only 32 bits of space
Internally is a NonZeroU32
to allow for space optimizations when stored inside of an Option
Implementations§
source§impl Spur
impl Spur
sourcepub const fn into_inner(self) -> NonZeroU32
pub const fn into_inner(self) -> NonZeroU32
Returns the NonZeroU32
backing the current Spur
Trait Implementations§
source§impl<'de> Deserialize<'de> for Spur
impl<'de> Deserialize<'de> for Spur
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 Spur
impl Key for Spur
source§fn try_from_usize(int: usize) -> Option<Self>
fn try_from_usize(int: usize) -> Option<Self>
Returns None
if int
is greater than u32::MAX - 1
source§fn into_usize(self) -> usize
fn into_usize(self) -> usize
Returns the
usize
that represents the current keysource§impl Ord for Spur
impl Ord for Spur
source§impl PartialEq<Spur> for Spur
impl PartialEq<Spur> for Spur
source§impl PartialOrd<Spur> for Spur
impl PartialOrd<Spur> for Spur
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 Spur
impl Eq for Spur
impl StructuralEq for Spur
impl StructuralPartialEq for Spur
Auto Trait Implementations§
impl RefUnwindSafe for Spur
impl Send for Spur
impl Sync for Spur
impl Unpin for Spur
impl UnwindSafe for Spur
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