Skip to main content

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 contains no padding.
  • Serde: Optional support for full serialization/deserialization (feature: serde).
  • no_std: Compatible with no_std.

Modules§

u32
A 32-bit arena allocator.