pub(crate) fn shim_conversion_err_arm(
name: &str,
ty: &Type,
read_ty: Option<&Type>,
target: Option<&Ident>,
) -> TokenStreamExpand description
Trait shims have no R call slot. They return the same structured argument
error as C wrappers; a View re-panic attributes it to the consumer’s call.
read_ty supplies TryFromSexp expectations when the conversion uses that
trait; rooted views instead derive their expectation from the error.
The class is the implementing package’s, read when the conversion fails
(trait_abi::conversion_error_class): a declaration’s shims expand in the
declaring crate, but run in the package that implements the trait, and
raise what that package’s own wrapper for the method raises.