pub struct Key<K>(/* private fields */)
where
K: Eq + Hash;Expand description
A key wrapper that uses Arc for cheap cloning and equality comparisons.
Trait Implementations§
impl<K> Eq for Key<K>
Auto Trait Implementations§
impl<K> Freeze for Key<K>
impl<K> RefUnwindSafe for Key<K>where
K: RefUnwindSafe,
impl<K> Send for Key<K>
impl<K> Sync for Key<K>
impl<K> Unpin for Key<K>
impl<K> UnsafeUnpin for Key<K>
impl<K> UnwindSafe for Key<K>where
K: RefUnwindSafe,
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§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.