#vec #erased #type-erased #untyped

untyped_vec

A type-erased vector type for Rust

2 releases

0.1.1 Feb 15, 2022
0.1.0 Feb 15, 2022

#3 in #type-erased

27 downloads per month

MIT license

10KB
212 lines

untyped_vec

A type-erased vector type for Rust

Installation

Add untyped_vec to your Cargo.toml to use untyped_vec.

[dependencies]
untyped_vec = *

Usage

let mut vec = untyped_vec::UntypedVec::new::<usize>()

vec.push(42);

assert_eq!(vec.get::<usize>(0), &42)

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

No runtime deps