fn output_is_result(output: &ReturnType) -> boolExpand 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.