Struct string_interner::symbol::SymbolUsize
source · pub struct SymbolUsize { /* private fields */ }
Expand description
Symbol that is the same size as a pointer (usize
).
Is space-optimized for used in Option
.
Trait Implementations§
source§impl Clone for SymbolUsize
impl Clone for SymbolUsize
source§fn clone(&self) -> SymbolUsize
fn clone(&self) -> SymbolUsize
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SymbolUsize
impl Debug for SymbolUsize
source§impl Hash for SymbolUsize
impl Hash for SymbolUsize
source§impl Ord for SymbolUsize
impl Ord for SymbolUsize
source§fn cmp(&self, other: &SymbolUsize) -> Ordering
fn cmp(&self, other: &SymbolUsize) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SymbolUsize
impl PartialEq for SymbolUsize
source§fn eq(&self, other: &SymbolUsize) -> bool
fn eq(&self, other: &SymbolUsize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for SymbolUsize
impl PartialOrd for SymbolUsize
source§fn partial_cmp(&self, other: &SymbolUsize) -> Option<Ordering>
fn partial_cmp(&self, other: &SymbolUsize) -> Option<Ordering>
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 moresource§impl Symbol for SymbolUsize
impl Symbol for SymbolUsize
impl Copy for SymbolUsize
impl Eq for SymbolUsize
impl StructuralPartialEq for SymbolUsize
Auto Trait Implementations§
impl Freeze for SymbolUsize
impl RefUnwindSafe for SymbolUsize
impl Send for SymbolUsize
impl Sync for SymbolUsize
impl Unpin for SymbolUsize
impl UnwindSafe for SymbolUsize
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