pub struct SymbolMap<T> { /* private fields */ }
Expand description
Use this to associate additional state with a Symbol, identified by a SymbolId. We prefer this instead of adding an extra generic state field on Symbol, as that would require propagating the generic type everywhere. Use as many of these as desired. To allow for initialisation and referencing without Option, the state value must have a default.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for SymbolMap<T>where
T: RefUnwindSafe,
impl<T> Send for SymbolMap<T>where
T: Send,
impl<T> Sync for SymbolMap<T>where
T: Sync,
impl<T> Unpin for SymbolMap<T>where
T: Unpin,
impl<T> UnwindSafe for SymbolMap<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more