Enum typemap_rev::Entry[][src]

pub enum Entry<'a, K> where
    K: TypeMapKey
{ Occupied(OccupiedEntry<'a, K>), Vacant(VacantEntry<'a, K>), }
Expand description

A view into a single entry in the TypeMap, which may either be vacant or occupied.

This heavily mirrors the official Entry API in the standard library, but not all of it is provided due to implementation restrictions. Please refer to its documentations.

Variants

Occupied(OccupiedEntry<'a, K>)

Tuple Fields

0: OccupiedEntry<'a, K>

Vacant(VacantEntry<'a, K>)

Tuple Fields

0: VacantEntry<'a, K>

Implementations

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.