pub struct MappedKeyValue { /* private fields */ }
Expand description
A mapped key/value pair.
Mapped range read operations on FDB return MappedKeyValue
.
Implementations§
Source§impl MappedKeyValue
impl MappedKeyValue
Sourcepub fn get_key_value_ref(&self) -> &KeyValue
pub fn get_key_value_ref(&self) -> &KeyValue
Gets a reference to KeyValue
from MappedKeyValue
.
Sourcepub fn get_range_ref(&self) -> &Range
pub fn get_range_ref(&self) -> &Range
Gets a reference to Range
from MappedKeyValue
.
Sourcepub fn get_range_result_ref(&self) -> &Vec<KeyValue>
pub fn get_range_result_ref(&self) -> &Vec<KeyValue>
Gets a reference to Vec<KeyValue>
from MappedKeyValue
.
Sourcepub fn into_key_value(self) -> KeyValue
pub fn into_key_value(self) -> KeyValue
Extract KeyValue
from MappedKeyValue
.
Sourcepub fn into_range(self) -> Range
pub fn into_range(self) -> Range
Extract Range
from MappedKeyValue
.
Sourcepub fn into_range_result(self) -> Vec<KeyValue>
pub fn into_range_result(self) -> Vec<KeyValue>
Extract Vec<KeyValue>
from MappedKeyValue
.
Sourcepub fn into_parts(self) -> (KeyValue, Range, Vec<KeyValue>)
pub fn into_parts(self) -> (KeyValue, Range, Vec<KeyValue>)
Extract KeyValue
, Range
and Vec<KeyValue>
from
MappedKeyValue
.
Trait Implementations§
Source§impl Clone for MappedKeyValue
impl Clone for MappedKeyValue
Source§fn clone(&self) -> MappedKeyValue
fn clone(&self) -> MappedKeyValue
Returns a duplicate 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 moreAuto Trait Implementations§
impl !Freeze for MappedKeyValue
impl RefUnwindSafe for MappedKeyValue
impl Send for MappedKeyValue
impl Sync for MappedKeyValue
impl Unpin for MappedKeyValue
impl UnwindSafe for MappedKeyValue
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