Skip to main content

argument

Function argument 

Source
pub(crate) fn argument(
    name: &Ident,
    diagnostic_name: &str,
    ty: &Type,
    impl_ty: &impl ToTokens,
    index: usize,
    argv: &Ident,
    target: Option<&Ident>,
) -> TokenStream
Expand description

Convert one shim argument with the C wrapper’s structured error arm. Arity and native alias checks must run first. Self handles are borrowed later, after their address checks; rooted views retain a local scope until the method’s return has been converted.