Crate aligned_box

Source
Expand description

Allocate heap memory with user-specified alignment.

Structs§

AlignedBox
A wrapper around alloc::boxed::Box which allows allocating aligned heap memory. An instance of AlignedBox<T> consists of a Box<T> and the alloc::alloc::Layout that has been used to allocate the referenced memory.

Enums§

AlignedBoxError
Error type for custom errors of AlignedBox.