Type erased vector [AnyVec]. Allow to store elements of the same type.
Have same performance and operations as [std::vec::Vec].
You can downcast type erased [AnyVec] to concrete [AnyVecTyped<Element>] with downcast-family.
Or use [AnyVec]'s type erased operations, which operate on [u8] byte basis.
use AnyVec;
let mut vec: AnyVec = ;
let mut other_vec: AnyVec = ;
// Fully type erased element move from one vec to another
// without intermediate mem-copies.
//
// Equivalent to:
//
// let element = vec.swap_remove(0);
// other.push(element);
unsafe
// Output 2 1
for s in vec..unwrap.as_slice
[AnyVec] is [Send]able if it's elements are.
[AnyVec] is [Sync]able if it's elements are.