Struct idmap::OccupiedEntry[][src]

pub struct OccupiedEntry<'a, K: IntegerId + 'a, V: 'a, T: 'a + EntryTable<K, V>> { /* fields omitted */ }
Expand description

An entry in an IdMap where the value is present

Implementations

The key associated with the entry

Consume the entry, giving a mutable reference to the value which is bound to the (mutable) lifetime of the map.

Get a reference to the value

Borrow a mutable reference to the value

Replace the value in the map, returning its old value

Remove the value from the map, consuming this entry

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.