Enum weak_table::weak_value_hash_map::Entry [−][src]
pub enum Entry<'a, K: 'a, V: 'a + WeakElement> {
Occupied(OccupiedEntry<'a, K, V>),
Vacant(VacantEntry<'a, K, V>),
}
Expand description
Represents an entry in the table which may be occupied or vacant.
Variants
Occupied(OccupiedEntry<'a, K, V>)
Tuple Fields
0: OccupiedEntry<'a, K, V>
Vacant(VacantEntry<'a, K, V>)
Tuple Fields
0: VacantEntry<'a, K, V>
Implementations
Ensures a value is in the entry by inserting a default value if empty.
O(1) time
Ensures a value is in the entry by inserting the result of the default function if empty.
O(1) time