Struct qp_trie::OccupiedEntry
[−]
[src]
pub struct OccupiedEntry<'a, K: 'a + ToOwned, V: 'a> { /* fields omitted */ }
An occupied entry in the trie.
Methods
impl<'a, K: 'a + ToOwned + Borrow<[u8]>, V: 'a> OccupiedEntry<'a, K, V>
[src]
fn key(&self) -> &K
Get a reference to the key of the entry.
fn remove_entry(self) -> (K::Owned, V)
Remove the entry from the trie, returning the stored key and value.
fn get(&self) -> &V
Get a reference to the value in the occupied entry.
fn get_mut(&mut self) -> &mut V
Get a mutable reference to the value in the occupied entry.
fn into_mut(self) -> &'a mut V
Consume the entry to produce a mutable reference to the associated value.
fn insert(&mut self, val: V) -> V
Replace the associated value, returning the old one.
fn remove(self) -> V
Remove the entry altogether, returning the previously stored value.