slice_ptr_from_parts

Function slice_ptr_from_parts 

Source
pub const fn slice_ptr_from_parts<T>(p: *const T, len: usize) -> *const [T]
Expand description

Creates a *mut [T] from a pointer and a length.

This is a helper used in place of ptr::slice_from_raw_parts_mut, which was const-stabilized after this crate’s MSRV.