Crate aligned_vec
source · [−]Expand description
aligned-vec
This crate provides the AVec<T>
and ABox<T>
types, which are intended to have a similar API
to Vec<T>
and Box<T>
, but align the data they contain to a runtime alignment value.
This is useful for situations where the alignment of the data matters, such as when working with numerical data that can get performance benefits from being aligned to a SIMD-compatible memory address.
Features
std
(default feature): Links this crate to thestd-crate
instead of thecore-crate
.serde
: Implements serialization and deserialization features forABox
andAVec
.
Macros
Create a vector that is aligned to a cache line boundary.
Create a vector that is aligned to a runtime alignment value.
Structs
Type wrapping a compile-time alignment value.
Type wrapping a runtime alignment value.
Constants
Traits
Trait for types that wrap an alignment value.