pub enum EntryData<K, V> {
Insert {
key: K,
value: V,
},
Remove(K),
}
Expand description
The data of the Entry
.
Variants§
Implementations§
Trait Implementations§
Source§impl<K, V> CheapClone for EntryData<K, V>where
K: CheapClone,
V: CheapClone,
impl<K, V> CheapClone for EntryData<K, V>where
K: CheapClone,
V: CheapClone,
Source§fn cheap_clone(&self) -> EntryData<K, V>
fn cheap_clone(&self) -> EntryData<K, V>
Returns a copy of the value.
Source§impl<K, V> Ord for EntryData<K, V>
impl<K, V> Ord for EntryData<K, V>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<K, V> PartialOrd for EntryData<K, V>
impl<K, V> PartialOrd for EntryData<K, V>
impl<K, V> Eq for EntryData<K, V>
impl<K, V> StructuralPartialEq for EntryData<K, V>
Auto Trait Implementations§
impl<K, V> Freeze for EntryData<K, V>
impl<K, V> RefUnwindSafe for EntryData<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for EntryData<K, V>
impl<K, V> Sync for EntryData<K, V>
impl<K, V> Unpin for EntryData<K, V>
impl<K, V> UnwindSafe for EntryData<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.