Expand description
Per-document bump arena.
Wraps [bumpalo::Bump] with the AST-friendly subset of allocation
primitives the lex / render / parallel layers need. The arena is
consumed by super::Arena::alloc and friends; references it
returns are valid for the borrow of &self, which downstream
consumers re-export as the AST’s 'src lifetime.
§Why bumpalo
- Allocate-only: parses produce trees, never mutate them in place. Bump’s drop-everything-at-once model matches that exactly.
- Single-threaded by default; parallel parse paths use one arena per worker, then merge.
Structs§
- Arena
- Bump-allocator arena owning all AST node storage for a single parse.