Struct ordermap::OccupiedEntry
source · pub struct OccupiedEntry<'a, K: 'a, V: 'a, S: 'a = RandomState> { /* private fields */ }
Implementations§
source§impl<'a, K, V, S> OccupiedEntry<'a, K, V, S>
impl<'a, K, V, S> OccupiedEntry<'a, K, V, S>
pub fn key(&self) -> &K
pub fn get(&self) -> &V
pub fn get_mut(&mut self) -> &mut V
pub fn into_mut(self) -> &'a mut V
pub fn insert(self, value: V) -> V
pub fn remove(self) -> V
sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Remove and return the key, value pair stored in the map for this entry
Auto Trait Implementations§
impl<'a, K, V, S> RefUnwindSafe for OccupiedEntry<'a, K, V, S>where K: RefUnwindSafe, S: RefUnwindSafe, V: RefUnwindSafe,
impl<'a, K, V, S> Send for OccupiedEntry<'a, K, V, S>where K: Send, S: Send, V: Send,
impl<'a, K, V, S> Sync for OccupiedEntry<'a, K, V, S>where K: Sync, S: Sync, V: Sync,
impl<'a, K, V, S> Unpin for OccupiedEntry<'a, K, V, S>where K: Unpin,
impl<'a, K, V, S = RandomState> !UnwindSafe for OccupiedEntry<'a, K, V, S>
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