rustc_data_structures::aligned

Function align_of

source
pub const fn align_of<T: ?Sized + Aligned>() -> Alignment
Expand description

Returns the ABI-required minimum alignment of a type in bytes.

This is equivalent to mem::align_of, but also works for some unsized types (e.g. slices or rustc’s Lists).