Macro pyo3::wrap_pyfunction
source · [−]macro_rules! wrap_pyfunction {
($function_name: ident) => { ... };
($function_name: ident, $arg: expr) => { ... };
}
Expand description
Wraps a Rust function annotated with #[pyfunction]
, turning it into a
PyCFunction
.
This can be used with PyModule::add_function
to add
free functions to a PyModule
- see its documention for more information.