pyo3_macros_backend::pyfunction

Function impl_wrap_pyfunction

Source
pub fn impl_wrap_pyfunction(
    func: &mut ItemFn,
    options: PyFunctionOptions,
) -> Result<TokenStream>
Expand description

Generates python wrapper over a function that allows adding it to a python module as a python function

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