#collection #any

no-std list-any

Type erased slices and Vecs

3 unstable releases

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

#1052 in Data structures

Download history 111/week @ 2023-12-11 162/week @ 2023-12-18 215/week @ 2023-12-25 155/week @ 2024-01-01 183/week @ 2024-01-08 217/week @ 2024-01-15 182/week @ 2024-01-22 110/week @ 2024-01-29 94/week @ 2024-02-05 212/week @ 2024-02-12 102/week @ 2024-02-19 208/week @ 2024-02-26 127/week @ 2024-03-04 105/week @ 2024-03-11 184/week @ 2024-03-18 110/week @ 2024-03-25

566 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