Expand description
Arena allocators. Small and fast.
Structs§
- Arena
- An arena allocator.
- Arena
String - A custom string type, because
stdlacks allocator support forString. - Scratch
Arena - Borrows an
Arenafor temporary allocations.
Functions§
- init
- Initialize the scratch arenas with a given capacity.
Call this before using
scratch_arena. - scratch_
arena - Need an arena for temporary allocations?
scratch_arenagot you covered. Callscratch_arenaand it’ll return anArenathat resets when it goes out of scope.