untyped_vec 0.1.1

A type-erased vector type for Rust
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented0 out of 12 items with examples
  • Size
  • Source code size: 9.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.34 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Fahoom

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