Skip to main content

from_raw_parts_mut

Function from_raw_parts_mut 

Source
pub const fn from_raw_parts_mut<T: PointeeSized>(
    data_pointer: *mut impl Thin,
    metadata: <T as Pointee>::Metadata,
) -> *mut T
🔬This is a nightly-only experimental API. (ptr_metadata #81513)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

Performs the same functionality as from_raw_parts, except that a raw *mut pointer is returned, as opposed to a raw *const pointer.

See the documentation of from_raw_parts for more details.