Skip to main content

alignment_offset

Function alignment_offset 

Source
pub fn alignment_offset<T>(ptr: *const T, alignment: usize) -> usize
Expand description

Get the alignment offset needed to align a pointer.