Module buffer

Module buffer 

Source
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 Buffer is used to represent a contiguous array of Ts allocated in an Arena block.
GrowableBuffer
Used to access a variable-sized Buffer allocation in an Arena.
IntoIter
A by-value iterator over a Buffer.
IntoIterHandles
An iterator over a Buffer, yielding each element as a Handle<T>
TryExtendError
TryReserveError