1.0.0[][src]Function std::slice::from_raw_parts_mut

Important traits for &'_ [u8]
pub unsafe fn from_raw_parts_mut<'a, T>(data: *mut T, len: usize) -> &'a mut [T]

Performs the same functionality as from_raw_parts, except that a mutable slice is returned.

Safety

Behavior is undefined if any of the following conditions are violated: