#generational #vec #index

gvec

Very simple implementation of generational indexing for vectors written in Rust

5 releases (breaking)

0.5.0 May 28, 2019
0.4.0 May 13, 2019
0.3.0 Feb 22, 2019
0.2.0 Feb 20, 2019
0.1.0 Jan 25, 2019

#2308 in Data structures

MIT license

19KB
279 lines

gvec

gvec is a simple library for Generational Vecs and Indices written in Rust. It simply deals with insertion and removal of elements/values to the vector itself, while avoiding use-after-free scenarios and reusing available space.

Current features

  • Insertion
  • Removal
  • Automatic reallocation when the vector is full
  • "vec![]"-like macro
  • Iterator

Possible new features

  • Enumeration with support for GenerationalIndexing

No runtime deps