pub struct Ref<K, V, S = DefaultHashBuilder>{ /* private fields */ }Expand description
A reference to an entry inside RcHashMap. Clone increments per-entry count; dropping decrements and removes the entry when it reaches zero.
Implementations§
Source§impl<K, V, S> Ref<K, V, S>
impl<K, V, S> Ref<K, V, S>
Trait Implementations§
impl<K, V, S> Eq for Ref<K, V, S>
Auto Trait Implementations§
impl<K, V, S> Freeze for Ref<K, V, S>
impl<K, V, S = WyHashRandomState> !RefUnwindSafe for Ref<K, V, S>
impl<K, V, S = WyHashRandomState> !Send for Ref<K, V, S>
impl<K, V, S = WyHashRandomState> !Sync for Ref<K, V, S>
impl<K, V, S> Unpin for Ref<K, V, S>
impl<K, V, S = WyHashRandomState> !UnwindSafe for Ref<K, V, S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.