pub struct VacantEntry<'a, K, V> { /* private fields */ }Expand description
A view into a vacant entry of a BTreeIndexMap.
This is part of the Entry enum.
Implementations§
Source§impl<'a, K, V> VacantEntry<'a, K, V>
impl<'a, K, V> VacantEntry<'a, K, V>
Sourcepub fn insert_full(self, value: V) -> (usize, &'a K, &'a mut V)where
K: Ord,
pub fn insert_full(self, value: V) -> (usize, &'a K, &'a mut V)where
K: Ord,
Inserts value in the map for this entry’s key, returning the new
entry’s index, key, and a mutable reference to the value.
Sourcepub fn insert_entry(self, value: V) -> (&'a K, &'a mut V)where
K: Ord,
pub fn insert_entry(self, value: V) -> (&'a K, &'a mut V)where
K: Ord,
Inserts value in the map for this entry’s key, returning the new
entry’s key and a mutable reference to the value.
Auto Trait Implementations§
impl<'a, K, V> !UnwindSafe for VacantEntry<'a, K, V>
impl<'a, K, V> Freeze for VacantEntry<'a, K, V>
impl<'a, K, V> RefUnwindSafe for VacantEntry<'a, K, V>
impl<'a, K, V> Send for VacantEntry<'a, K, V>
impl<'a, K, V> Sync for VacantEntry<'a, K, V>
impl<'a, K, V> Unpin for VacantEntry<'a, K, V>
impl<'a, K, V> UnsafeUnpin for VacantEntry<'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