macro_rules! align_of {
    ($t:ty) => { ... };
}
Expand description

Returns the ABI-required minimum alignment of a type.

Every reference to a value of the type T must be a multiple of this number.

This is the alignment used for struct fields. It may be smaller than the preferred alignment.

Examples

#[macro_use]
extern crate mem_macros;

assert_eq!(4, align_of!(i32));