3 unstable releases
0.2.1 | Jul 6, 2022 |
---|---|
0.2.0 | Sep 27, 2021 |
0.1.0 | Sep 18, 2021 |
#2153 in Data structures
224 downloads per month
Used in 9 crates
(via rend3)
23KB
425 lines
Overview
This crate provides abstractions to type-erase various lists (Vecs and slices).
lib.rs
:
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>>
.