macro_rules! wrap_pyfunction_bound { ($function:path) => { ... }; ($function:path, $py_or_module:expr) => { ... }; }
👎Deprecated since 0.23.0: renamed to
wrap_pyfunction!
Expand description
Wraps a Rust function annotated with #[pyfunction]
.
This can be used with PyModule::add_function
to
add free functions to a PyModule
- see its documentation for more
information.