untyped_vec

Crates.iountyped_vec
lib.rsuntyped_vec
version0.1.1
sourcesrc
created_at2022-02-15 16:44:22.284389
updated_at2022-02-15 16:52:37.812772
descriptionA type-erased vector type for Rust
homepage
repositoryhttps://github.com/Fahoom/untyped_vec
max_upload_size
id532805
size10,202
Fahim Hamid (Fahoom)

documentation

README

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

Commit count: 8

cargo fmt