Registry / utility / aligned-array

aligned-array

JSON →
library1.0.1rscratesunverified

A newtype with alignment of at least `A` bytes

# Cargo.toml [dependencies] aligned-array = "1.0.1"
INSTALL
IMPORT
SIG · ALIGNED-ARRAY
A
aligned-array
utilityrustv1.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AlignedArray
use aligned_array::AlignedArray;

Create a fixed-size array with guaranteed minimum alignment.

use aligned_array::AlignedArray; // Create an array aligned to 64 bytes let arr: AlignedArray<u8, 64, 128> = AlignedArray::default(); assert_eq!(std::mem::align_of_val(&arr), 64);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.0.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
41 hits · last 30 days
node
36
Amazon
1
OpenAI (training)
1
Resources
aligned-array — cargo add aligned-array · libregistry