pub struct OccupiedEntry<'a, K: 'a, V: 'static>(/* private fields */);
Expand description
An occupied entry
Implementations§
Source§impl<'a, K: 'a, V: 'static> OccupiedEntry<'a, K, V>
impl<'a, K: 'a, V: 'static> OccupiedEntry<'a, K, V>
Sourcepub fn remove_boxed(self) -> Box<V>
pub fn remove_boxed(self) -> Box<V>
Removes and returns the entry’s value
Panics on type mismatch.
Auto Trait Implementations§
impl<'a, K, V> Freeze for OccupiedEntry<'a, K, V>
impl<'a, K, V> !RefUnwindSafe for OccupiedEntry<'a, K, V>
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>where
V: Unpin,
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