3 unstable releases

0.2.1 Jul 6, 2022
0.2.0 Sep 27, 2021
0.1.0 Sep 18, 2021

#2021 in Data structures

Download history 194/week @ 2024-01-12 206/week @ 2024-01-19 124/week @ 2024-01-26 93/week @ 2024-02-02 158/week @ 2024-02-09 148/week @ 2024-02-16 161/week @ 2024-02-23 152/week @ 2024-03-01 118/week @ 2024-03-08 134/week @ 2024-03-15 172/week @ 2024-03-22 175/week @ 2024-03-29 85/week @ 2024-04-05 73/week @ 2024-04-12 84/week @ 2024-04-19 96/week @ 2024-04-26

369 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