pub struct Interned<I>where
I: Interner,{ /* private fields */ }Expand description
An interned string key parameterized by Interner type I.
With GlobalInterner, this is 4 bytes and Copy.
With NoInterner, this is a pointer and Clone only.
Serde support serializes as the string value and deserializes via interning.
Implementations§
Trait Implementations§
impl<I> Copy for Interned<I>
impl<I> Eq for Interned<I>where
I: Interner,
Auto Trait Implementations§
impl<I> Freeze for Interned<I>
impl<I> RefUnwindSafe for Interned<I>
impl<I> Send for Interned<I>
impl<I> Sync for Interned<I>
impl<I> Unpin for Interned<I>
impl<I> UnsafeUnpin for Interned<I>
impl<I> UnwindSafe for Interned<I>
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