Struct intern_all::instance::TypedInterner
source · pub struct TypedInterner<T: 'static + Eq + Hash + Clone + Send + Sync> { /* private fields */ }Expand description
An interner for any type that implements Borrow. Not many optimizations are employed and the interner uses the default allocator. This and the use of weak references means that a long-lived instance can be kept around with regular calls to TypedInterner::sweep.
Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for TypedInterner<T>
impl<T> Send for TypedInterner<T>
impl<T> Sync for TypedInterner<T>
impl<T> Unpin for TypedInterner<T>
impl<T> UnwindSafe for TypedInterner<T>
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