pub fn deref_aligned<T>(
    data: &mut [u8],
    offset: usize,
    len: usize
) -> Result<*mut T>
Expand description

Validates that data contains len elements of type T at offset aligned to align_of::<T>() and returns a mutable pointer to the first element on success.