pyo3_macros_backend::pymethod

Function split_off_python_arg

Source
fn split_off_python_arg<'a, 'b>(
    args: &'a [FnArg<'b>],
) -> (Option<&'a PyArg<'b>>, &'a [FnArg<'b>])
Expand description

Split an argument of pyo3::Python from the front of the arg list, if present

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