Struct indexmap::map::VacantEntry [−][src]
pub struct VacantEntry<'a, K: 'a, V: 'a> { /* fields omitted */ }Methods
impl<'a, K, V> VacantEntry<'a, K, V>[src]
impl<'a, K, V> VacantEntry<'a, K, V>pub fn key(&self) -> &K[src]
pub fn key(&self) -> &Kpub fn into_key(self) -> K[src]
pub fn into_key(self) -> Kpub fn index(&self) -> usize[src]
pub fn index(&self) -> usizeReturn the index where the key-value pair will be inserted.
pub fn insert(self, value: V) -> &'a mut V[src]
pub fn insert(self, value: V) -> &'a mut VAuto Trait Implementations
impl<'a, K, V> Send for VacantEntry<'a, K, V> where
K: Send,
V: Send,
impl<'a, K, V> Send for VacantEntry<'a, K, V> where
K: Send,
V: Send, impl<'a, K, V> Sync for VacantEntry<'a, K, V> where
K: Sync,
V: Sync,
impl<'a, K, V> Sync for VacantEntry<'a, K, V> where
K: Sync,
V: Sync,