Skip to main content

lift_object_opt_param

Function lift_object_opt_param 

Source
pub unsafe fn lift_object_opt_param<'a, T>(
    ptr: *const T,
) -> Result<Option<&'a T>, FfiError>
Expand description

Borrow an optional object parameter (I?); null is None.

§Errors

Never fails; the Result keeps every lift the same shape.

§Safety

Same contract as object_ref.