Crate list_any

Crate list_any 

Source
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§

SliceAny
A type-erased slice.
SliceAnyMut
A type-erased mutable slice.
VecAny
A type-erased Vec.
VecAnyGuard
A guard providing mutable access to a concretely typed vector, obtained with VecAny::downcast_mut.

Traits§

AnyBound
This trait describes the Send + Sync bounds on the types of elements contained in the lists in this crate.