Enum anymap::Entry [] [src]

pub enum Entry<'a, A: ?Sized + UncheckedAnyExt, V: 'a> {
    Occupied(OccupiedEntry<'a, A, V>),
    Vacant(VacantEntry<'a, A, V>),
}

A view into a single location in an Map, which may be vacant or occupied.

Variants

An occupied Entry

A vacant Entry

Methods

impl<'a, A: ?Sized + UncheckedAnyExt, V: IntoBox<A>> Entry<'a, A, V>
[src]

Ensures a value is in the entry by inserting the default if empty, and returns a mutable reference to the value in the entry.

Ensures a value is in the entry by inserting the result of the default function if empty, and returns a mutable reference to the value in the entry.