stable-vec

Build Status crates.io version docs

A Vec<T>-like collection which guarantees stable indices and features O(1) deletion of elements at the cost of wasting some memory. Please refer to the the documentation for more information.

This crate is still young, but the API won't change a lot. Everything should already work as intended, but it's not extensively tested yet. If you're working on mission-critical software, please don't use this library. Otherwise feel free to do so!

Alternatives? What about slab?

A few weeks after writing the intial version of this crate, I found the crate slab which does pretty much the same as this crate (and has way more downloads). Despite being very similar, there are a few differences which might be important for you:

You want to contribute?

Yes please! In particular, you could work on these things:

I'm glad to do some mentoring for anyone interested in contributing.


License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.