Skip to main content

track_arc

Function track_arc 

Source
pub fn track_arc<T: 'static>(ptr: *mut T) -> *mut T
Expand description

Track an Arc-wrapped pointer

Use this when you allocate with Arc::into_raw(). The pointer will be freed with Arc::from_raw() when cimpl_free() is called.