[−][src]Macro align_data::aligned
Returns a static reference of the expression $e
with requested alignment.
Unfortunately it is required to specify the type of the expression $e
because it is stored in a static
.
Examples
use align_data::{aligned, Align16}; let five = aligned!(Align16, i32, 5); assert_eq!(five as *const _ as usize % 0x10, 0);