Skip to main content

assert_alignment

Function assert_alignment 

Source
pub fn assert_alignment<T>(ptr: *const T)
Expand description

Panics if ptr is not aligned to DEFAULTALIGN bytes.

ยงPanics

Panics with a descriptive message when the pointer does not satisfy the default alignment requirement.