Skip to main content

handle_conversion

Function handle_conversion 

Source
pub(crate) fn handle_conversion(
    ident: &Ident,
    sexp_ident: &Ident,
    ty: &Type,
    arg: &ExternalArg,
    self_ty: Option<&Type>,
    err_arm: TokenStream,
) -> TokenStream
Expand description

The statement converting the borrowed argument ident (of type arg) to its handle, given its R-facing failure arm (err_arm, an Err(e) => match arm). self_ty replaces Self.