#[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 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 more