Function slice_n::from_raw_parts [−][src]
pub unsafe fn from_raw_parts<'a, T, const N: usize>(
data: *const T,
len: usize
) -> Option<&'a SliceN<T, N>>
Forms a SliceN
from a 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
.