Registry / utility / maligned

maligned

JSON →
library0.2.1rscratesunverified

A memory alignment library.

# Cargo.toml [dependencies] maligned = "0.2.1"
INSTALL
IMPORT
SIG · MALIGNED
M
maligned
utilityrustv0.2.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.

AlignedBytes
use maligned::AlignedBytes;

Allocate memory with specified alignment.

use maligned::AlignedBytes; let aligned: AlignedBytes<16> = AlignedBytes::new(0u8); assert_eq!(aligned.as_ptr() as usize % 16, 0);
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
maligned — cargo add maligned · libregistry