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

Download history 153/week @ 2024-03-24 192/week @ 2024-03-31 67/week @ 2024-04-07 69/week @ 2024-04-14 93/week @ 2024-04-21 93/week @ 2024-04-28 74/week @ 2024-05-05 69/week @ 2024-05-12 104/week @ 2024-05-19 69/week @ 2024-05-26 50/week @ 2024-06-02 51/week @ 2024-06-09 70/week @ 2024-06-16 67/week @ 2024-06-23 33/week @ 2024-06-30 50/week @ 2024-07-07

224 downloads per month
Used in 9 crates (via rend3)

Apache-2.0 OR MIT OR Zlib

23KB
425 lines

Overview

crates.io docs.rs License

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>>.

No runtime deps

Features