alignment_of

Function alignment_of 

Source
pub fn alignment_of<T>(a: &[T]) -> Alignment
Expand description

Check the alignment of slice

let a = AlignedVec::<f32>::new(123);
assert_eq!(alignment_of(&a), 0);  // aligned