Skip to main content

output_is_result

Function output_is_result 

Source
fn output_is_result(output: &ReturnType) -> bool
Expand description

Returns true when the return type is syntactically Result<_, _>.

Used to determine whether unwrap_in_r mode should use ReturnHandling::IntoR (passing the Result through to R) instead of the default return handling.