Skip to main content

const_make_global

Function const_make_global 

Source
pub const unsafe fn const_make_global(ptr: *mut u8) -> *const u8
🔬This is a nightly-only experimental API. (core_intrinsics)
This item is validated for IEC 61508 (SIL 2) and ISO 26262 (ASIL B).
Expand description

Convert the allocation this pointer points to into immutable global memory. The pointer must point to the beginning of a heap allocation. This operation only makes sense during compile time. At runtime, it does nothing.