#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

#1649 in Data structures

Download history 148/week @ 2024-07-22 86/week @ 2024-07-29 106/week @ 2024-08-05 126/week @ 2024-08-12 105/week @ 2024-08-19 70/week @ 2024-08-26 145/week @ 2024-09-02 71/week @ 2024-09-09 186/week @ 2024-09-16 146/week @ 2024-09-23 107/week @ 2024-09-30 58/week @ 2024-10-07 127/week @ 2024-10-14 76/week @ 2024-10-21 188/week @ 2024-10-28 208/week @ 2024-11-04

601 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