pub struct OccupiedEntry<'a, K: Ord, V>(/* private fields */);
Implementations§
Source§impl<'a, K: Ord, V> OccupiedEntry<'a, K, V>
impl<'a, K: Ord, V> OccupiedEntry<'a, K, V>
pub fn key(&self) -> &K
pub fn remove_entry(self) -> (K, Tree<K, V>)
pub fn get(&self) -> &Tree<K, V>
pub fn get_mut(&mut self) -> &mut Tree<K, V>
pub fn into_mut(self) -> &'a mut Tree<K, V>
pub fn insert(&mut self, value: V) -> (V, &mut Tree<K, V>)
pub fn insert_tree(&mut self, tree: Tree<K, V>) -> Tree<K, V>
pub fn remove(self) -> Tree<K, V>
Trait Implementations§
Auto Trait Implementations§
impl<'a, K, V> Freeze for OccupiedEntry<'a, K, V>
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