Trait eclectic::map::VacantEntry
[−]
[src]
pub trait VacantEntry<'a>: Sized { type Map: ?Sized + EntryMap<'a, VacantEntry=Self>; fn insert(self, value: Self::Map::Value) -> &'a mut Self::Map::Value; }
A vacant map entry.
'a
is the lifetime of the map.
Associated Types
Required Methods
fn insert(self, value: Self::Map::Value) -> &'a mut Self::Map::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 + Ord, V: 'a> VacantEntry<'a> for VacantEntry<'a, K, V>
impl<'a, K: 'a + Eq + Hash, V: 'a> VacantEntry<'a> for VacantEntry<'a, K, V>