pub struct VacantEntry<'a, K1, K2, V> { /* private fields */ }Expand description
A view into a vacant entry of a DoubleMap.
Implementations§
Source§impl<K1, K2, V> VacantEntry<'_, K1, K2, V>
impl<K1, K2, V> VacantEntry<'_, K1, K2, V>
Source§impl<'a, K1, K2, V> VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> VacantEntry<'a, K1, K2, V>
Sourcepub fn insert(self, value: V) -> &'a mut V
pub fn insert(self, value: V) -> &'a mut V
Sets the value of the entry with the VacantEntry’s key, and returns a mutable reference to it.
Sourcepub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K1, K2, V>
pub fn insert_entry(self, value: V) -> OccupiedEntry<'a, K1, K2, V>
Sets the value of the entry with the VacantEntry’s key, and returns an OccupiedEntry.
Auto Trait Implementations§
impl<'a, K1, K2, V> !UnwindSafe for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Freeze for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> RefUnwindSafe for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Send for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Sync for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> Unpin for VacantEntry<'a, K1, K2, V>
impl<'a, K1, K2, V> UnsafeUnpin for VacantEntry<'a, K1, K2, V>where
K1: UnsafeUnpin,
K2: UnsafeUnpin,
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