Skip to main content

Module arena

Module arena 

Source
Expand description

Arena/index-based storage.

An Arena is an append-only vector of nodes addressed by typed Id<T> handles. Nodes are never moved after insertion, so IDs stay stable for the arena’s lifetime. Lookup is bounds-checked and returns Option, so a dangling or out-of-range ID surfaces as a recoverable invariant error instead of a panic.

Structs§

Arena
An append-only store of T nodes addressed by Id<T>.