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> PartialOrd<Bound<KeyRef<'a>>> for KeyRef<'a>
impl<'a> PartialOrd<Bound<KeyRef<'a>>> for KeyRef<'a>
Source§impl<'a> PartialOrd<KeyRef<'a>> for Bound<KeyRef<'a>>
impl<'a> PartialOrd<KeyRef<'a>> for Bound<KeyRef<'a>>
Source§impl<'a> PartialOrd for KeyRef<'a>
impl<'a> PartialOrd for KeyRef<'a>
impl<'a> Copy for KeyRef<'a>
impl<'a> Eq for KeyRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for KeyRef<'a>
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