stable-vec 0.1.1

A Vec-like collection which guarantees stable indices and features O(1) deletion of elements
Documentation
extern crate stable_vec;

use stable_vec::StableVec;



fn main() {
    let mut sv = StableVec::from(&[0, 1, 2, 3, 4, 5]);
    sv.remove(1);
    sv.remove(4);

    for e in &sv {
        println!("{:?}", e);
    }

    println!("-------");
    for e in &mut sv {
        *e += 1;
        println!("{:?}", e);
    }

    println!("-------");
    for e in &sv {
        println!("{:?}", e);
    }
}