Struct intern_arc::global::HashInternerPool [−][src]
A lazy map from type to hash-based interner
This is the backing implementation for hash_interner(), you
can use it if you want the ability to drop the whole pool (note, though, that this will
not drop the interned values — they are kept alive by the references you keep to them
and are automatically freed when they are no longer references).
Implementations
impl HashInternerPool[src]
pub fn new() -> Self[src]
pub fn get<T: ?Sized>(&self) -> Option<HashInterner<T>> where
T: Eq + Hash + Send + Sync + Any + 'static, [src]
T: Eq + Hash + Send + Sync + Any + 'static,
Obtain an interner for the given type if it has been created already.
pub fn get_or_create<T: ?Sized>(&mut self) -> HashInterner<T> where
T: Eq + Hash + Send + Sync + Any + 'static, [src]
T: Eq + Hash + Send + Sync + Any + 'static,
Obtain an interner for the given type, create it if necessary.
Trait Implementations
impl Default for HashInternerPool[src]
Auto Trait Implementations
impl !RefUnwindSafe for HashInternerPool
impl Send for HashInternerPool
impl Sync for HashInternerPool
impl Unpin for HashInternerPool
impl !UnwindSafe for HashInternerPool
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,