Crate genindex

Source
Expand description

Generational index library.

Structs§

IndexF64
A GenIndex that is stored as f64, which 32bit index and 21bit generation. Useful for interfacing with Javascript
IndexPair
A standard GenIndex with index and generation pair.
IndexU64
A GenIndex that is stored as u64, which 32bit index and 32bit generation.
NewTypeIndex
A GenIndex newtype.

Traits§

GenIndex
An index with generation that can be used as a weak reference to array values. The generation part allows indices to be reused without suffering from ABA problem, so that data can be safely stored in a packed array.