pub struct Sym(/* private fields */);
Expand description
Symbol type used by the DefaultStringInterner
.
§Note
This special symbol type has a memory footprint of 32 bits
and allows for certain space optimizations such as using it within an option: Option<Sym>
Trait Implementations§
Source§impl Ord for Sym
impl Ord for Sym
Source§impl PartialOrd for Sym
impl PartialOrd for Sym
impl Copy for Sym
impl Eq for Sym
impl StructuralPartialEq for Sym
Auto Trait Implementations§
impl Freeze for Sym
impl RefUnwindSafe for Sym
impl Send for Sym
impl Sync for Sym
impl Unpin for Sym
impl UnwindSafe for Sym
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