pyo3_macros_backend::params

Function impl_regular_arg_param

Source
pub(crate) fn impl_regular_arg_param(
    arg: &RegularArg<'_>,
    from_py_with: Ident,
    arg_value: TokenStream,
    holders: &mut Holders,
    ctx: &Ctx,
) -> TokenStream
Expand description

Re option_pos: The option slice doesn’t contain the py: Python argument, so the argument index and the index in option diverge when using py: Python

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here