Skip to main content

slice_from_raw_parts

Function slice_from_raw_parts 

Source
pub unsafe fn slice_from_raw_parts<T>(
    data: User<'_, *const T>,
    len: usize,
) -> User<'_, *const [T]>
Available on crate feature full only.
Expand description

ยงSafety

If data points to accessible memory, it must point to len elements of type T. See User::<*const T>::new(User::<*const T>::new#safety) for more details.