Skip to main content

lift_object_arc_param

Function lift_object_arc_param 

Source
pub unsafe fn lift_object_arc_param<T>(
    ptr: *const T,
    name: &str,
) -> Result<Arc<T>, FfiError>
Expand description

Take a new strong reference to an object parameter, so the producer can retain it.

§Errors

Returns a marshalling error for null.

§Safety

Same contract as object_arc.