Skip to main content

object_arc

Function object_arc 

Source
pub unsafe fn object_arc<T>(ptr: *const T) -> Option<Arc<T>>
Expand description

Take a new strong reference to a borrowed object, so the producer can retain it past the call. Null yields None.

ยงSafety

ptr must be null or a pointer produced by lower_object (or {tag}_clone) whose reference is still live.