| Crates.io | nomvec |
| lib.rs | nomvec |
| version | 0.1.1 |
| created_at | 2020-07-16 19:58:19.244705+00 |
| updated_at | 2020-07-16 19:58:19.244705+00 |
| description | Vector implementation from |
| homepage | |
| repository | |
| max_upload_size | |
| id | 265943 |
| size | 13,657 |
vector implementation from The Rustonomicon thats compatible with rust stable 1.45
$ cargo test
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);