Crate aligned_box
source ·Expand description
Allocate heap memory with user-specified alignment.
Structs§
- A wrapper around
alloc::boxed::Box
which allows allocating aligned heap memory. An instance ofAlignedBox<T>
consists of aBox<T>
and thealloc::alloc::Layout
that has been used to allocate the referenced memory.
Enums§
- Error type for custom errors of
AlignedBox
.