3 unstable releases

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

#952 in Data structures

Download history 50/week @ 2022-11-28 88/week @ 2022-12-05 80/week @ 2022-12-12 62/week @ 2022-12-19 54/week @ 2022-12-26 62/week @ 2023-01-02 157/week @ 2023-01-09 92/week @ 2023-01-16 135/week @ 2023-01-23 126/week @ 2023-01-30 116/week @ 2023-02-06 79/week @ 2023-02-13 108/week @ 2023-02-20 75/week @ 2023-02-27 65/week @ 2023-03-06 82/week @ 2023-03-13

354 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

  • alloc