Skip to main content

alloc_owned_mutable_i64

Function alloc_owned_mutable_i64 

Source
pub fn alloc_owned_mutable_i64(initial: i64) -> *mut i64
Expand description

Allocate a fresh OwnedMutable cell holding an i64 payload.

Returns a *mut i64 produced by Box::into_raw(Box::new(initial)). The caller must eventually reclaim the box via Box::from_raw (or indirectly via drop_owned_mutable_capture on the owning closure).