3 unstable releases

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

#1267 in Data structures

Download history 105/week @ 2024-12-11 90/week @ 2024-12-18 8/week @ 2024-12-25 33/week @ 2025-01-01 66/week @ 2025-01-08 43/week @ 2025-01-15 54/week @ 2025-01-22 31/week @ 2025-01-29 47/week @ 2025-02-05 52/week @ 2025-02-12 27/week @ 2025-02-19 45/week @ 2025-02-26 18/week @ 2025-03-05 53/week @ 2025-03-12 57/week @ 2025-03-19 21/week @ 2025-03-26

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

Apache-2.0 OR MIT OR Zlib

23KB
425 lines

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


Overview

crates.io docs.rs License

This crate provides abstractions to type-erase various lists (Vecs and slices).

No runtime deps

Features