alloc_arena.SequentialScope
Internal implementation documentation
Defined in alloc_arena.
A compile-time alias selecting between ObservedSequentialScope when allocation observation is enabled and UnobservedSequentialScope when disabled.
Source
Source: lib/alloc/arena/src/sequential.zig:40
zig
/// A compile-time alias selecting between ObservedSequentialScope when/// allocation observation is enabled and UnobservedSequentialScope when/// disabled. Both implementations provide identical public methods for init,/// allocator, deinit, and queryCapacity. The type does not expose a reset/// method, bounding all allocations to a single sequential lifetime ended by/// calling deinit, which releases every backing node. The implementation is not/// thread-safe and requires single-threaded access.pub const SequentialScope = if (observe.enabled) ObservedSequentialScopeelse UnobservedSequentialScope;Source: lib/alloc/arena/src/root.zig:237
zig
/// The root SequentialScope export provides a caller-controlled sequential/// temporary lifetime ended by deinit, and the caller must serialize all use./// For fresh nodes, the initial allocation covers the current request including/// the node header and conservative alignment room before optional spare/// capacity expansion, meaning exact-first sizing is not payload-only and is/// not the order for growing an existing node.pub const SequentialScope = sequential.SequentialScope;Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |