Crate toy_arena[][src]

Expand description

Extensible generational arena for various uses. Example

Goals: Tiny code and real use. Non-goals: Super fast performance.

Similar crates

NOTE: Still early, bugs can exist!

Modules

Example code and documentation

Iterator types for the Arena

Tree layered on top of the generational arena

Macros

Creates an Arena and with given values. Arena<T> type might have to be annotated.

Creates a Tree with given hierarchy of value

Structs

Generational arena: basically a Vec, but with fixed item positions

Slot with identitiy based on generation.

Index of the backing Vec in Arena. It can be upgraded to Index, but prefer mutable iterators to slot-based iteration.

Traits

Generation type, one of the unsized NonZero types in std::num

Type Definitions

Default generation type used by arena