Struct anymap::raw::VacantEntry
[−]
[src]
pub struct VacantEntry<'a, A: ?Sized + UncheckedAnyExt> { // some fields omitted }
A view into a single empty location in a RawMap
.
Methods
impl<'a, A: ?Sized + UncheckedAnyExt> VacantEntry<'a, A>
[src]
unsafe fn insert(self, value: Box<A>) -> &'a mut A
Sets the value of the entry with the VacantEntry's key, and returns a mutable reference to it
It is the caller’s responsibility to ensure that the key of the entry corresponds with
the type ID of value
. If they do not, memory safety may be violated.