Trait eclectic::map::VacantEntry
[−]
[src]
pub trait VacantEntry<'a> { type Key: 'a; type Value: 'a; fn insert(self, value: Self::Value) -> &'a mut Self::Value; }
A vacant map entry.
'a
is the lifetime of the map.
Associated Types
Required Methods
fn insert(self, value: Self::Value) -> &'a mut Self::Value
Inserts the entry into the map with the given value and returns a mutable reference to it with the same lifetime as the map.
Implementors
impl<'a, K: 'a, V: 'a> VacantEntry<'a> for VacantEntry<'a, K, V> where K: Ord
impl<'a, K: 'a, V: 'a> VacantEntry<'a> for VacantEntry<'a, K, V> where K: Eq + Hash