pub struct KeyRef<'a, K>where
K: 'a,{
pub key: &'a K,
pub version: u64,
}
Expand description
A reference to a key.
Fields§
§key: &'a K
The key.
version: u64
The version of the key.
Implementations§
Trait Implementations§
source§impl<'a, K> Ord for KeyRef<'a, K>where
K: Ord,
impl<'a, K> Ord for KeyRef<'a, K>where
K: Ord,
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<'a, K> PartialEq for KeyRef<'a, K>where
K: PartialEq + 'a,
impl<'a, K> PartialEq for KeyRef<'a, K>where
K: PartialEq + 'a,
source§impl<'a, K> PartialOrd for KeyRef<'a, K>where
K: Ord,
impl<'a, K> PartialOrd for KeyRef<'a, K>where
K: Ord,
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'a, K> Copy for KeyRef<'a, K>
impl<'a, K> Eq for KeyRef<'a, K>where
K: Eq + 'a,
impl<'a, K> StructuralPartialEq for KeyRef<'a, K>where
K: 'a,
Auto Trait Implementations§
impl<'a, K> Freeze for KeyRef<'a, K>
impl<'a, K> RefUnwindSafe for KeyRef<'a, K>where
K: RefUnwindSafe,
impl<'a, K> Send for KeyRef<'a, K>where
K: Sync,
impl<'a, K> Sync for KeyRef<'a, K>where
K: Sync,
impl<'a, K> Unpin for KeyRef<'a, K>
impl<'a, K> UnwindSafe for KeyRef<'a, 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<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.