Macro pyo3::wrap_pyfunction[][src]

macro_rules! wrap_pyfunction {
    ($function_name : ident) => { ... };
    ($function_name : ident, $arg : expr) => { ... };
}
Expand description

Returns a function that takes a Python instance and returns a Python function.

Use this together with #[pyfunction] and types::PyModule::add_wrapped.