Expand description
This crate provides abstractions to type-erase various lists (Vecs and slices).
Type erasing a list still requires the contained type to be homogeneous.
The VecAny
type provided in this crate is semantically a
Vec<dyn Any>
, where the trait object provides indirection to a single
type. For heterogeneous lists, some indirection is needed, as found
in Vec<Box<dyn Any>>
.
Structs
A type-erased slice.
A type-erased mutable slice.
A guard providing mutable access to a concretely typed vector, obtained
with VecAny::downcast_mut
.
Traits
This trait describes the Send + Sync bounds on the types of elements contained in the lists in this crate.