Function slice_n::from_raw_parts_unchecked[][src]

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

Forms a SliceN from a pointer and a length, without checking the length.

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