Struct fdb::MappedKeyValue
source · 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 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 moreAuto Trait Implementations§
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