Skip to main content

shim_conversion_err_arm

Function shim_conversion_err_arm 

Source
pub(crate) fn shim_conversion_err_arm(
    name: &str,
    ty: &Type,
    read_ty: Option<&Type>,
    target: Option<&Ident>,
) -> TokenStream
Expand 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.