Struct VacantEntry
pub struct VacantEntry<'a, K, V> { /* private fields */ }
A vacant Entry. It is part of the Entry enum.
Implementations
impl<'a, K: Ord, V> VacantEntry<'a, K, V>
fn key(&self) -> &KGets a reference to the key that would be used when inserting a value through the
VacantEntry.fn insert(self, value: V) -> &'a mut VSets the value of the entry with the
VacantEntry's key, and returns a mutable reference to it.