Trait RawEntry

Source
pub trait RawEntry<'a> {
    type Key;
    type Value;

    // Required methods
    fn key(&self) -> &Self::Key;
    fn value(&self) -> Option<&Self::Value>;
    fn value_mut(&mut self) -> Option<&mut Self::Value>;
}
Expand description

A RawEntry represents a single record within a key-value store, providing access to the key alongisde methods for accessing and manipulating the value of the entry.

Required Associated Types§

Required Methods§

Source

fn key(&self) -> &Self::Key

Returns a reference to the key of the entry.

Source

fn value(&self) -> Option<&Self::Value>

Returns a reference to the value of the entry.

Source

fn value_mut(&mut self) -> Option<&mut Self::Value>

Returns a mutable reference to the value of the entry.

Implementations on Foreign Types§

Source§

impl<'a, K, V> RawEntry<'a> for Entry<'a, K, V>
where K: Ord,

Source§

type Key = K

Source§

type Value = V

Source§

fn key(&self) -> &Self::Key

Source§

fn value(&self) -> Option<&Self::Value>

Source§

fn value_mut(&mut self) -> Option<&mut Self::Value>

Source§

impl<'a, K, V> RawEntry<'a> for Entry<'a, K, V>
where K: Eq + Hash,

Source§

type Key = K

Source§

type Value = V

Source§

fn key(&self) -> &Self::Key

Source§

fn value(&self) -> Option<&Self::Value>

Source§

fn value_mut(&mut self) -> Option<&mut Self::Value>

Implementors§