W3cubDocs

/Rust

Function std::ptr::slice_from_raw_parts_mut

pub fn slice_from_raw_parts_mut<T>(data: *mut T, len: usize) -> *mut [T]
🔬 This is a nightly-only experimental API. (slice_from_raw_parts #36925)recently added

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

See the documentation of from_raw_parts for more details.

© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/ptr/fn.slice_from_raw_parts_mut.html