pub struct RefcountedMap<K: Eq + Hash + Clone, V: Clone> { /* private fields */ }Expand description
A map where values are reference counted; removing all refs drops the value.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<K, V> Freeze for RefcountedMap<K, V>
impl<K, V> RefUnwindSafe for RefcountedMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for RefcountedMap<K, V>
impl<K, V> Sync for RefcountedMap<K, V>
impl<K, V> Unpin for RefcountedMap<K, V>
impl<K, V> UnsafeUnpin for RefcountedMap<K, V>
impl<K, V> UnwindSafe for RefcountedMap<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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