pub const fn align_of<T>() -> usizeThis item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description
Returns the ABI-required minimum alignment of a type, in bytes.
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
(Caution: it is not guaranteed that the alignment of i32 is 4;
that is, the above assertion does not pass on all platforms.)