Function mentat_ffi::utils::error::translate_result [] [src]

pub unsafe fn translate_result<T, E>(
    result: Result<T, E>,
    error: *mut ExternError
) -> *mut T where
    E: Display

Translate Result<T, E>, into something C can understand, when T is not #[repr(C)]