Crate alignment

Source
Expand description

Stable version of core::ptr::Alignment, with some extra stuff.

Structs§

Alignment
usize that’s guaranteed to be a power of two (excluding zero).
DoubledLen
usize that’s guaranteed to be a power of two or zero.
TryFromSizeError
Error when converting from a usize or NonZeroUsize to an Alignment or DoubledLen.
ZeroLenError
Error when converting from a DoubledLen to NonZeroUsize or Alignment.