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) -> V
pub fn value(&self) -> V
Decode the value using its declared codec.
§Panics
Panics if the stored encoding violates the value codec or its bound.
Sourcepub fn into_pair(self) -> (K, V)
pub fn into_pair(self) -> (K, V)
Consume the entry and decode its value.
§Panics
Panics if the stored encoding violates the value codec or its bound.
Sourcepub fn into_value(self) -> V
pub fn into_value(self) -> V
Consume the entry and decode only its value.
§Panics
Panics if the stored encoding violates the value codec or its bound.
Auto Trait Implementations§
impl<K, V> Forget for MapEntry<K, V>
impl<K, V> Freeze for MapEntry<K, V>
impl<K, V> Move 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