Function tvm::function::ffi::TVMCbArgToReturn[][src]

pub unsafe extern "C" fn TVMCbArgToReturn(
    value: *mut TVMValue,
    code: *mut i32
) -> i32
Expand description

\brief Inplace translate callback argument value to return value. This is only needed for non-POD arguments.

\param value The value to be translated. \param code The type code to be translated. \note This function will do a shallow copy when necessary.

\return 0 when success, nonzero when failure happens.