Skip to main content

write_owned_mutable_ptr

Function write_owned_mutable_ptr 

Source
pub unsafe fn write_owned_mutable_ptr(ptr: *mut u64, value: u64)
Expand description

Write a new u64 (Ptr-shaped) payload into an OwnedMutable cell.

§Safety

ptr must be non-null and point to a live Box<u64> cell. The caller is responsible for releasing the previous payload’s refcount share (if any) BEFORE calling this — this function does not retain/release.