Expand description
A contiguous, growable array of values allocated in an Arena.
A Buffer can store multiple instances of T contiguously in memory allocated
by an Arena (bounded by the capacity it was constructed with). Iteration and
random access are fast due to this characteristic.
Unlike a Vec<T>, a Buffer has a fixed capacity, as it cannot guarantee
that it has exclusive access to the underlying Arena from which it is
allocated.
Structsยง
- Buffer
- A
Bufferis used to represent a contiguous array ofTs allocated in anArenablock. - Growable
Buffer - Used to access a variable-sized
Bufferallocation in anArena. - Into
Iter - A by-value iterator over a
Buffer. - Into
Iter Handles - An iterator over a
Buffer, yielding each element as aHandle<T> - TryExtend
Error - TryReserve
Error