pub struct KeyRef<'a> {
pub key: &'a [u8],
pub timestamp: u64,
}
Expand description
A shallow, easy-to-copy reference to a key.
Fields§
§key: &'a [u8]
The key of this KeyRef.
timestamp: u64
The timestamp of this KeyRef.
Trait Implementations§
source§impl<'a> From<&'a KeyValuePair> for KeyRef<'a>
impl<'a> From<&'a KeyValuePair> for KeyRef<'a>
source§fn from(kvp: &'a KeyValuePair) -> Self
fn from(kvp: &'a KeyValuePair) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a KeyValueRef<'b>> for KeyRef<'a>
impl<'a, 'b: 'a> From<&'a KeyValueRef<'b>> for KeyRef<'a>
source§fn from(kvr: &'a KeyValueRef<'b>) -> KeyRef<'a>
fn from(kvr: &'a KeyValueRef<'b>) -> KeyRef<'a>
Converts to this type from the input type.
source§impl<'a> From<KeyRef<'a>> for KeyValuePair
impl<'a> From<KeyRef<'a>> for KeyValuePair
source§impl<'a> Ord for KeyRef<'a>
impl<'a> Ord for KeyRef<'a>
source§impl<'a> PartialEq<Bound<KeyRef<'a>>> for KeyRef<'a>
impl<'a> PartialEq<Bound<KeyRef<'a>>> for KeyRef<'a>
source§impl<'a> PartialEq<KeyRef<'a>> for Bound<KeyRef<'a>>
impl<'a> PartialEq<KeyRef<'a>> for Bound<KeyRef<'a>>
source§impl<'a> PartialEq for KeyRef<'a>
impl<'a> PartialEq for KeyRef<'a>
source§impl<'a> PartialOrd<Bound<KeyRef<'a>>> for KeyRef<'a>
impl<'a> PartialOrd<Bound<KeyRef<'a>>> for KeyRef<'a>
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 moresource§impl<'a> PartialOrd<KeyRef<'a>> for Bound<KeyRef<'a>>
impl<'a> PartialOrd<KeyRef<'a>> for Bound<KeyRef<'a>>
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 moresource§impl<'a> PartialOrd for KeyRef<'a>
impl<'a> PartialOrd for KeyRef<'a>
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> Copy for KeyRef<'a>
impl<'a> Eq for KeyRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KeyRef<'a>
impl<'a> Send for KeyRef<'a>
impl<'a> Sync for KeyRef<'a>
impl<'a> Unpin for KeyRef<'a>
impl<'a> UnwindSafe for KeyRef<'a>
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