pub(in core) struct UninternedSymbolMap {
map: RefCell<Vec<(Symbol<'static>, Symbol<'static>)>>,
}
Expand description
When copying uninterned symbols, we need to ensure that all instances share the same address if they did originally. This keeps a mapping from old symbols to new.
Fields§
§map: RefCell<Vec<(Symbol<'static>, Symbol<'static>)>>
Implementations§
Trait Implementations§
Source§impl Default for UninternedSymbolMap
impl Default for UninternedSymbolMap
Source§fn default() -> UninternedSymbolMap
fn default() -> UninternedSymbolMap
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for UninternedSymbolMap
impl !RefUnwindSafe for UninternedSymbolMap
impl Send for UninternedSymbolMap
impl !Sync for UninternedSymbolMap
impl Unpin for UninternedSymbolMap
impl !UnwindSafe for UninternedSymbolMap
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