Enum eclectic::map::Entry
[−]
[src]
pub enum Entry<OE, VE> { Occupied(OE), Vacant(VE), }
A map entry.
Variants
Occupied(OE)
An occupied map entry.
Vacant(VE)
A vacant map entry.
Methods
impl<'a, OE, VE> Entry<OE, VE> where OE: OccupiedEntry<'a>, VE: VacantEntry<'a, Value=OE::Value>
[src]
fn or_insert(self, default: VE::Value) -> &'a mut OE::Value
Ensures the entry is occupied by inserting it with the given default value if it is vacant.
fn or_insert_with<F>(self, f: F) -> &'a mut OE::Value where F: FnOnce() -> VE::Value
Ensures the entry is occupied by inserting it with the result of the given function if it is vacant.