Struct im::hashmap::VacantEntry [−][src]
pub struct VacantEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher, { /* fields omitted */ }
An entry for a mapping that does not already exist in the map.
Methods
impl<'a, K, V, S> VacantEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher,
[src]
impl<'a, K, V, S> VacantEntry<'a, K, V, S> where
K: 'a + Hash + Eq + Clone,
V: 'a + Clone,
S: 'a + BuildHasher,
pub fn key(&self) -> &K
[src]
pub fn key(&self) -> &K
Get the key for this entry.
pub fn into_key(self) -> K
[src]
pub fn into_key(self) -> K
Convert this entry into its key.
pub fn insert(self, value: V) -> &'a mut V
[src]
pub fn insert(self, value: V) -> &'a mut V
Insert a value into this entry.
Auto Trait Implementations
impl<'a, K, V, S> !Send for VacantEntry<'a, K, V, S>
impl<'a, K, V, S> !Send for VacantEntry<'a, K, V, S>
impl<'a, K, V, S> !Sync for VacantEntry<'a, K, V, S>
impl<'a, K, V, S> !Sync for VacantEntry<'a, K, V, S>