[][src]Crate persist_o_vec

The purpose of "persist-o-vec" is to:

  • prevent reallocation
  • re-use freed slots fast
  • only iter over used slots

As such, you must allocate what you need before use up to the maximum determined by the chosen indexer feature. In future there will be an option to increase the capacity if required.

features available

The features available are for the size of the indexing type used internally. This dictates how much extra storage is used for Vec<T>. The default is a u16 which means a possible 2 bytes * 2 per T. The maximum entries per Vec for each type are:

  • u8 = 256
  • u16 = 65026
  • u32 = 4228250626
  • u64 = 17878103347812890625

WIP!

Structs

Iter
IterMut
Persist

Iteration will not always be in order