is_vec_aligned

Function is_vec_aligned 

Source
pub fn is_vec_aligned<T>(vec: &[T], alignment: usize) -> bool
Expand description

Check if a Vec’s data is aligned

Note: Vec doesn’t guarantee alignment, so this may return false. For guaranteed alignment, use AlignedBuffer instead.