Skip to main content

Module buffer

Module buffer 

Source
Expand description

Traits abstracting over the buffers that back Binius’ working memory.

BufferData is the shrinkable-in-place surface, and VecLike is that plus growth — the subset of Vec’s API that callers rely on. Both are container vocabulary: they say what a buffer can do, not where its memory came from, so a plain Vec, a borrowed &mut [T], or a buffer drawn from a recycling pool can all satisfy them.

Traits§

BufferData
A mutable buffer of T that can be shrunk in place.
VecLike
A growable, Vec-like buffer.