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