Enum idmap::Entry [−][src]
pub enum Entry<'a, K: IntegerId + 'a, V: 'a, T: 'a + EntryTable<K, V>> {
Occupied(OccupiedEntry<'a, K, V, T>),
Vacant(VacantEntry<'a, K, V, T>),
}
Expand description
An entry in an IdMap
Variants
Occupied(OccupiedEntry<'a, K, V, T>)
An entry whose value is present
Tuple Fields of Occupied
0: OccupiedEntry<'a, K, V, T>
Vacant(VacantEntry<'a, K, V, T>)
An entry whose value is missing
Tuple Fields of Vacant
0: VacantEntry<'a, K, V, T>
Implementations
Return a reference to this entry’s value, initializing it with the specified value if its missing
Return a reference to this entry’s value, using the closure to initialize it if its missing