Function checked_align_of_raw

Source
pub fn checked_align_of_raw<T: ?Sized>(ptr: *const T) -> Option<usize>
Expand description

Compute the size of the val pointed to if safe.

Return None if alignment information cannot be retrieved (foreign types), or if value is not power-of-two.