Registry / utility / aligned

aligned

JSON →
library0.4.3rscratesunverified

A newtype with alignment of at least `A` bytes.

# Cargo.toml [dependencies] aligned = "0.4.3"
INSTALL
IMPORT
SIG · ALIGNED
A
aligned
utilityrustv0.4.3
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.

Aligned
use aligned::Aligned;

Creates an Aligned newtype with specified alignment.

use aligned::Aligned; fn main() { let aligned: Aligned<[u8; 16], 64> = Aligned([0u8; 16]); println!("Alignment: {}", core::mem::align_of_val(&aligned)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.4.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
32 hits · last 30 days
node
26
Meta
1
OpenAI (training)
1
Resources
aligned — cargo add aligned · libregistry