pub unsafe fn slice_from_ptr_mut<'a, T>(
ptr: *mut T,
len: usize,
) -> SecurityResult<&'a mut [T]>Expand description
Safely creates a mutable slice from a raw pointer after validation.
ยงSafety
Same requirements as slice_from_ptr, plus:
- The caller must have exclusive access to the memory