pub struct MapEntry<K, V> { /* private fields */ }Expand description
MapEntry
An owned key and lazily decoded value from an ordered scan.
Implementations§
Source§impl<K, V: Storable> MapEntry<K, V>
impl<K, V: Storable> MapEntry<K, V>
Sourcepub fn value(&self) -> Result<V, CollectionError>
pub fn value(&self) -> Result<V, CollectionError>
Decode the value using its declared codec.
§Errors
Returns the application codec or declared-bound error for this value.
Sourcepub fn into_pair(self) -> Result<(K, V), CollectionError>
pub fn into_pair(self) -> Result<(K, V), CollectionError>
Consume the entry and decode its value.
§Errors
Returns the application codec or declared-bound error for this value.
Sourcepub fn into_value(self) -> Result<V, CollectionError>
pub fn into_value(self) -> Result<V, CollectionError>
Consume the entry and decode only its value.
§Errors
Returns the application codec or declared-bound error for this value.
Auto Trait Implementations§
impl<K, V> Freeze for MapEntry<K, V>
impl<K, V> RefUnwindSafe for MapEntry<K, V>
impl<K, V> Send for MapEntry<K, V>
impl<K, V> Sync for MapEntry<K, V>
impl<K, V> Unpin for MapEntry<K, V>
impl<K, V> UnsafeUnpin for MapEntry<K, V>
impl<K, V> UnwindSafe for MapEntry<K, V>
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