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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.