init
Function parameters
Parameters
This allocator takes an existing allocator, wraps it, and provides an interface where
Types
- ArenaAllocator
- This allocator takes an existing allocator, wraps it, and provides an interface where
Source
Implementation
pub fn init(child_allocator: Allocator) ArenaAllocator {
return (State{}).promote(child_allocator);
}