alignment
The rule that a value must start at an address divisible by some number.
A type's alignment is the power of two its address must be a multiple of; the compiler adds padding to satisfy it.
Loading interactive…
Examples
std::mem::align_of::<u64>()is 8, so everyu64starts at an address that is a multiple of 8.
See also