Enum polymap::typemap::Entry [] [src]

pub enum Entry<'a, V: Any> {
    Occupied(OccupiedEntry<'a, V>),
    Vacant(VacantEntry<'a, V>),
}

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

This enum is returned from the entry method on TypeMap.

Variants

An occupied entry

A vacant entry

Methods

impl<'a, V: Any> Entry<'a, V>
[src]

Inserts a value if empty, then returns a mutable reference.

Inserts a value if empty using the given function, then returns a mutable reference.

Trait Implementations

impl<'a, V: Any + Debug> Debug for Entry<'a, V>
[src]

Formats the value using the given formatter.