Struct typemap::VacantEntry [] [src]

pub struct VacantEntry<'a, K, A: ?Sized + UnsafeAnyExt + 'a = UnsafeAny> {
    // some fields omitted
}

A view onto an unoccupied entry in a TypeMap.

Methods

impl<'a, K: Key, A: ?Sized + UnsafeAnyExt> VacantEntry<'a, K, A>
[src]

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

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