Skip to main content

Module features

Module features 

Source
Expand description

Opt-in feature catalog. Each submodule is gated by its own Cargo feature flag and adds a specific capability to the base bump arena without bloating the core build.

See Cargo.toml [features] for the catalog + the cookbook page for the per-feature p99 + memory cost + use cases.

Modulesยง

aligned
AlignedBump: bump arena exposing an alloc_aligned(size, align) convenience over the base Layout-driven raw API.
growable
GrowableBump: a bump arena that allocates a fresh chunk (at twice the previous size, or the request size, whichever is larger) when the active chunk runs out of room. Previous chunks are retained until reset() or drop so any references handed out remain valid.
stats
StatsBump: bump arena with runtime counters for observability.
typed
TypedArena<T>: a typed arena of fixed slots, with slot reuse.