Crate picket

Crate picket 

Source
Expand description

§Picket

Picket is a lightweight, serde-compatible generational arena allocator.

It allows you to insert items into an Arena and receive a unique Index in return. Unlike a standard Vec index, a Picket Index contains a “generation” counter. If an item is removed and its slot is reused by a new item, the old Index will fail to access the new item, preventing ABA problems.

§Key Features

  • Compact: Index is 8 bytes. Option<Index> is also 8 bytes.
  • Serde: Optional support for full serialization/deserialization (feature: serde).
  • no_std: Compatible with no_std.

Structs§

Arena
A lightweight, generational arena allocator.
Drain
Index
A unique key to access values in an Arena.
Iter
IterMut