Function slice_n::from_raw_parts_mut[][src]

pub unsafe fn from_raw_parts_mut<'a, T, const N: usize>(
    data: *mut T,
    len: usize
) -> Option<&'a mut SliceN<T, N>>

Forms a SliceN from a mutable pointer and a length if it is long enough.

In addition to the length being too low, this is just as unsafe as core::slice::from_raw_parts.