Enum tst::tst_map::Entry [] [src]

pub enum Entry<'x, Value: 'x> {
    Occupied(OccupiedEntry<'x, Value>),
    Vacant(VacantEntry<'x, Value>),
}

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

Variants

A vacant Entry

An occupied Entry

Methods

impl<'x, Value> Entry<'x, Value>
[src]

[src]

Gets a mut reference to the value in the entry or Err in case for Vacant.

[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.

[src]

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.