Struct starlark_map::unordered_map::RawOccupiedEntryMut
source · pub struct RawOccupiedEntryMut<'a, K, V> { /* private fields */ }
Expand description
Occupied entry.
Implementations§
source§impl<'a, K, V> RawOccupiedEntryMut<'a, K, V>
impl<'a, K, V> RawOccupiedEntryMut<'a, K, V>
sourcepub fn insert_key(&mut self, key: K) -> K
pub fn insert_key(&mut self, key: K) -> K
Replace the key associated with the entry.
sourcepub fn remove_entry(self) -> (K, V)
pub fn remove_entry(self) -> (K, V)
Remove the entry, return the key and value.
Auto Trait Implementations§
impl<'a, K, V> RefUnwindSafe for RawOccupiedEntryMut<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> Send for RawOccupiedEntryMut<'a, K, V>
impl<'a, K, V> !Sync for RawOccupiedEntryMut<'a, K, V>
impl<'a, K, V> Unpin for RawOccupiedEntryMut<'a, K, V>
impl<'a, K, V> !UnwindSafe for RawOccupiedEntryMut<'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