std::ptr::slice_from_raw_parts_mut - Rust
Description: API documentation for the Rust `slice_from_raw_parts_mut` fn in crate `std`.
Keywords: rust, rustlang, rust-lang, slice_from_raw_parts_mut

# 1.42.0[−][src]Function std::ptr::slice_from_raw_parts_mut

    pub fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T]

Performs the same functionality as `slice_from_raw_parts`, except that a raw mutable slice is returned, as opposed to a raw immutable slice.

See the documentation of `slice_from_raw_parts` for more details.

This function is safe, but actually using the return value is unsafe. See the documentation of `from_raw_parts_mut` for slice safety requirements.