Enum type_map::concurrent::Entry [−][src]
pub enum Entry<'a, T> {
Occupied(OccupiedEntry<'a, T>),
Vacant(VacantEntry<'a, T>),
}
Expand description
A view into a single entry in a map, which may either be vacant or occupied.
Variants
Occupied(OccupiedEntry<'a, T>)
Tuple Fields
0: OccupiedEntry<'a, T>
Vacant(VacantEntry<'a, T>)
Tuple Fields
0: VacantEntry<'a, T>
Implementations
Ensures a value is in the entry by inserting the default if empty, and returns a mutable reference to the value in the entry.
Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.