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

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

Notable traits for &'_ [u8]

impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]

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: