Skip to main content

object_clone

Function object_clone 

Source
pub unsafe fn object_clone<T>(ptr: *const T) -> *mut T
Expand description

The body of every {tag}_clone symbol: return a new strong reference to the same object. The pointer value is unchanged; null is a no-op returning null.

ยงSafety

ptr must be null or a live pointer produced by lower_object.