Crates.io | untyped_vec |
lib.rs | untyped_vec |
version | 0.1.1 |
source | src |
created_at | 2022-02-15 16:44:22.284389 |
updated_at | 2022-02-15 16:52:37.812772 |
description | A type-erased vector type for Rust |
homepage | |
repository | https://github.com/Fahoom/untyped_vec |
max_upload_size | |
id | 532805 |
size | 10,202 |
A type-erased vector type for Rust
Add untyped_vec to your Cargo.toml to use untyped_vec.
[dependencies]
untyped_vec = *
let mut vec = untyped_vec::UntypedVec::new::<usize>()
vec.push(42);
assert_eq!(vec.get::<usize>(0), &42)
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.