Skip to main content

output_is_result

Function output_is_result 

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

Check whether a function’s return type is syntactically Result<_, _>.

This performs a shallow name check on the last path segment – it does not resolve type aliases. Used to decide whether unwrap_in_r should strip the Result wrapper before converting to SEXP.