pub const unsafe fn align_of_val<T: ?Sized>(ptr: *const T) -> usize🔬This is a nightly-only experimental API. (
core_intrinsics)This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description
The required alignment of the referenced value.
The stabilized version of this intrinsic is core::mem::align_of_val.
§Safety
See crate::mem::align_of_val_raw for safety conditions.