Struct type_erased_vec::TypeErasedVec [−][src]
Expand description
A type erased Vec.
Implementations
Constructs a new, empty TypeErasedVec
. See Vec::new_in.
Constructs a new, empty TypeErasedVec
with specified capacity. See Vec::with_capacity_in.
Constructs a new, empty TypeErasedVec
with specified capacity. See Vec::with_capacity.
Gets a smart pointer to Vec<T>
.
This is usually not want you want. Check TypeErasedVec::get instead.
This method is only implemented for TypeErasedVec<Global>
because we can’t get a Vec
back without giving it a allocator.
Safety
Panics
Panics if self
is leaked.