Struct keyvalint::KeyValueRef
source · pub struct KeyValueRef<'a> {
pub key: &'a [u8],
pub timestamp: u64,
pub value: Option<&'a [u8]>,
}
Expand description
A KeyValueRef is an easy-to-copy version of a key-value pair.
Fields§
§key: &'a [u8]
The key of this KeyValueRef.
timestamp: u64
The timestamp of this KeyValueRef.
value: Option<&'a [u8]>
The value of this KeyValueRef. None indicates a tombstone.
Trait Implementations§
source§impl<'a> Clone for KeyValueRef<'a>
impl<'a> Clone for KeyValueRef<'a>
source§fn clone(&self) -> KeyValueRef<'a>
fn clone(&self) -> KeyValueRef<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for KeyValueRef<'a>
impl<'a> Debug for KeyValueRef<'a>
source§impl<'a> Display for KeyValueRef<'a>
impl<'a> Display for KeyValueRef<'a>
source§impl<'a> From<&'a KeyValuePair> for KeyValueRef<'a>
impl<'a> From<&'a KeyValuePair> for KeyValueRef<'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<KeyValueRef<'a>> for Key
impl<'a> From<KeyValueRef<'a>> for Key
source§fn from(kvr: KeyValueRef<'a>) -> Self
fn from(kvr: KeyValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> From<KeyValueRef<'a>> for KeyValuePair
impl<'a> From<KeyValueRef<'a>> for KeyValuePair
source§fn from(kvr: KeyValueRef<'a>) -> Self
fn from(kvr: KeyValueRef<'a>) -> Self
Converts to this type from the input type.
source§impl<'a> Ord for KeyValueRef<'a>
impl<'a> Ord for KeyValueRef<'a>
source§fn cmp(&self, rhs: &KeyValueRef<'_>) -> Ordering
fn cmp(&self, rhs: &KeyValueRef<'_>) -> Ordering
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> PartialEq for KeyValueRef<'a>
impl<'a> PartialEq for KeyValueRef<'a>
source§fn eq(&self, rhs: &KeyValueRef<'_>) -> bool
fn eq(&self, rhs: &KeyValueRef<'_>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for KeyValueRef<'a>
impl<'a> PartialOrd for KeyValueRef<'a>
source§fn partial_cmp(&self, rhs: &KeyValueRef<'_>) -> Option<Ordering>
fn partial_cmp(&self, rhs: &KeyValueRef<'_>) -> Option<Ordering>
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> Eq for KeyValueRef<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for KeyValueRef<'a>
impl<'a> Send for KeyValueRef<'a>
impl<'a> Sync for KeyValueRef<'a>
impl<'a> Unpin for KeyValueRef<'a>
impl<'a> UnwindSafe for KeyValueRef<'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