add_fn_to_module

Function add_fn_to_module 

Source
pub fn add_fn_to_module(
    func: &mut ItemFn,
    python_name: Ident,
    pyfn_attrs: PyFunctionAttr,
) -> Result<TokenStream>
Expand description

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