pub struct MapEntry<K, V> { /* private fields */ }Expand description
Ordered map iterator retaining the collection borrow. Ordered map iterator retaining the collection borrow. Ordered map iterator retaining the collection borrow.
MapEntry
An owned key and encoded value from an ordered scan. Decoding failures trap.
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. Malformed stored bytes trap.
§Errors
Engine failures trap instead of returning an ordinary error.
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
Engine failures trap instead of returning an ordinary error.
Sourcepub fn into_value(self) -> Result<V, CollectionError>
pub fn into_value(self) -> Result<V, CollectionError>
Consume and decode only the value.
§Errors
Engine failures trap instead of returning an ordinary error.
Auto Trait Implementations§
impl<K, V> Forget for MapEntry<K, V>
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