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
sourceimpl 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
sourceimpl Clone for MappedKeyValue
impl Clone for MappedKeyValue
sourcefn clone(&self) -> MappedKeyValue
fn clone(&self) -> MappedKeyValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl RefUnwindSafe for MappedKeyValue
impl Send for MappedKeyValue
impl Sync for MappedKeyValue
impl Unpin for MappedKeyValue
impl UnwindSafe for MappedKeyValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more