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§impl<'a> PartialOrd for KeyValueRef<'a>
impl<'a> PartialOrd for KeyValueRef<'a>
impl<'a> Eq for KeyValueRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for KeyValueRef<'a>
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