pub struct OccupiedEntry<'a, K, V> { /* private fields */ }
Implementations§
Source§impl<'a, K, V> OccupiedEntry<'a, K, V>where
K: Ord,
impl<'a, K, V> OccupiedEntry<'a, K, V>where
K: Ord,
pub fn key(&self) -> CoordPair<&K>
pub fn remove_entry(self) -> (CoordPair<K>, V)where
K: Clone,
pub fn get(&self) -> &V
pub fn with_mut<F, T>(&mut self, modifier: F) -> T
pub fn into_ref(self) -> &'a V
pub fn insert(&mut self, value: V) -> Vwhere
V: Clone,
pub fn remove(self) -> Vwhere
K: Clone,
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