Function std::slice::from_raw_parts_mut1.0.0[][src]

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: