Skip to main content

Module aligned

Module aligned 

Source
Expand description

AlignedBump: bump arena exposing an alloc_aligned(size, align) convenience over the base Layout-driven raw API.

The base Bump::alloc_raw already accepts an arbitrary Layout and respects its alignment. This module exists as a focused shape for callers who think in (bytes, alignment) pairs: cache-line aligned scratch buffers for SIMD, page-aligned scratch for DMA, etc.

Fixed-capacity, single chunk. Panics on OOM; use try_alloc_aligned for the fallible form.

Structsยง

AlignedBump
Bump arena exposing explicit per-allocation alignment.