pub struct Symbol(/* private fields */);Expand description
A lightweight handle to an interned string.
Symbols are Copy and compare in O(1) time regardless of string length.
Use Interner::resolve to retrieve the original string.
Implementations§
Trait Implementations§
Source§impl DisplayWith for Symbol
impl DisplayWith for Symbol
impl Copy for Symbol
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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