kvarn_async::prelude::compact_str::core::ptr

Struct Alignment

source
pub struct Alignment(/* private fields */);
🔬This is a nightly-only experimental API. (ptr_alignment_type)
Expand description

A type storing a usize which is a power of two, and thus represents a possible alignment in the Rust abstract machine.

Note that particularly large alignments, while representable in this type, are likely not to be supported by actual allocators and linkers.

Implementations§