Struct typemap::VacantEntry [] [src]

pub struct VacantEntry<'a, K> {
    // some fields omitted
}

A view onto an unoccupied entry in a TypeMap.

Methods

impl<'a, K: Key> VacantEntry<'a, K>
[src]

fn insert(self, value: K::Value) -> &'a mut K::Value where K::Value: Any

Set the entry's value and return a mutable reference to it.