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) -> NonZero<u32>
pub const fn into_inner(self) -> NonZero<u32>
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<Spur>
fn try_from_usize(int: usize) -> Option<Spur>
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 PartialOrd for Spur
impl PartialOrd for Spur
impl Copy for Spur
impl Eq for Spur
impl StructuralPartialEq for Spur
Auto Trait Implementations§
impl Freeze for Spur
impl RefUnwindSafe for Spur
impl Send for Spur
impl Sync for Spur
impl Unpin for Spur
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.