3 releases

0.2.2 Apr 12, 2024
0.2.1 Mar 21, 2024
0.2.0 Mar 20, 2024

#1883 in Data structures

Download history 275/week @ 2024-03-19 9/week @ 2024-03-26 38/week @ 2024-04-02 180/week @ 2024-04-09 8/week @ 2024-04-16

188 downloads per month
Used in adts

MIT license

22KB
523 lines

genindex

license: MIT Crates.io docs.rs build

Overview

genindex is a no-std library for generational index, which is a number encoded as index + generation value. It is mainly 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.

Install

[dependencies]
genindex = "0.2"

Features:

  • serde - enables serde serialize/deserialize implementations of collections and indices

Documentation

See Docs.rs: https://docs.rs/genindex

License

This repository and the code inside it is licensed under the MIT License. Read LICENSE for more information.

Dependencies

~390–640KB
~13K SLoC