Struct qp_trie::OccupiedEntry
source · pub struct OccupiedEntry<'a, K: 'a, V: 'a> { /* private fields */ }
Expand description
An occupied entry in the trie.
Implementations§
source§impl<'a, K: 'a + Borrow<[u8]>, V: 'a> OccupiedEntry<'a, K, V>
impl<'a, K: 'a + Borrow<[u8]>, V: 'a> OccupiedEntry<'a, K, V>
sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Remove the entry from the trie, returning the stored key and value.
sourcepub fn get_mut(&mut self) -> &mut V
pub fn get_mut(&mut self) -> &mut V
Get a mutable reference to the value in the occupied entry.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> RefUnwindSafe for OccupiedEntry<'a, K, V>where K: RefUnwindSafe, V: RefUnwindSafe,
impl<'a, K, V> !Send for OccupiedEntry<'a, K, V>
impl<'a, K, V> !Sync for OccupiedEntry<'a, K, V>
impl<'a, K, V> Unpin for OccupiedEntry<'a, K, V>
impl<'a, K, V> !UnwindSafe for OccupiedEntry<'a, 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