pub struct Symbol<T, D>where
D: SymbolId,{ /* private fields */ }
Expand description
A table entry that associates an instance of T
with an atomic symbol.
Types T
should not be mutated by any means once they are associated with a
SymbolId
and stored in a Table
. Doing so may invalidate any caching or
indexing that is done on top of the table.
Implementations§
Trait Implementations§
Source§impl<T, D> Ord for Symbol<T, D>
impl<T, D> Ord for Symbol<T, D>
Source§impl<T, D> PartialOrd for Symbol<T, D>where
T: PartialOrd,
D: SymbolId,
impl<T, D> PartialOrd for Symbol<T, D>where
T: PartialOrd,
D: SymbolId,
impl<T, D> Eq for Symbol<T, D>
Auto Trait Implementations§
impl<T, D> Freeze for Symbol<T, D>
impl<T, D> RefUnwindSafe for Symbol<T, D>where
D: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, D> Send for Symbol<T, D>where
T: Send,
impl<T, D> Sync for Symbol<T, D>where
T: Sync,
impl<T, D> Unpin for Symbol<T, D>
impl<T, D> UnwindSafe for Symbol<T, D>where
D: UnwindSafe,
T: UnwindSafe,
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