pub fn alignment_offset<T>(ptr: *const T, alignment: usize) -> usize
Get the alignment offset needed to align a pointer.