pub struct LeakyInterner<'a, T: Eq + Hash> {
keys: RwLock<HashSet<&'a T>>,
}Expand description
An interner which leaks anything you give it using Box::leak
Fields§
§keys: RwLock<HashSet<&'a T>>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a, T> !Freeze for LeakyInterner<'a, T>
impl<'a, T> RefUnwindSafe for LeakyInterner<'a, T>
impl<'a, T> Send for LeakyInterner<'a, T>where
T: Sync,
impl<'a, T> Sync for LeakyInterner<'a, T>where
T: Sync,
impl<'a, T> Unpin for LeakyInterner<'a, T>
impl<'a, T> UnwindSafe for LeakyInterner<'a, 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