nomvec 0.1.1

Vector implementation from
Documentation
  • Coverage
  • 0%
    0 out of 11 items documented0 out of 11 items with examples
  • Size
  • Source code size: 13.28 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 4.16 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • clifton

rust-nomvec

vector implementation from The Rustonomicon thats compatible with rust stable 1.45

Testing

$ cargo test

Using

use nomvec::NomVec;

let mut cv: NomVec<i32> = NomVec::new();
cv.insert(0, 1);
cv.insert(0, 0);
cv.push(2);
for (i, x) in cv.iter().enumerate() {
    assert_eq!(i as i32, *x);
}
assert_eq!(cv.remove(0), 0);
assert_eq!(cv.len(), 2);