Struct trie::map::OccupiedEntry [] [src]

pub struct OccupiedEntry<'a, T: 'a> { /* fields omitted */ }

A view into an occupied entry in a map.

Methods

impl<'a, T> OccupiedEntry<'a, T>
[src]

[src]

Gets a reference to the value in the entry.

[src]

Gets a mutable reference to the value in the entry.

[src]

Converts the OccupiedEntry into a mutable reference to the value in the entry, with a lifetime bound to the map itself.

[src]

Sets the value of the entry, and returns the entry's old value.

[src]

Takes the value out of the entry, and returns it.