Crate pyo3_macros_more

Crate pyo3_macros_more 

Source
Expand description

More declarative macros for PyO3.

Macrosยง

bind_python
Macro that binds common Python functionalities to Rust functions. It is a combination of bind_python_callable!, bind_python_getter!, bind_python_setter! and python_wrap_with_gil!.
bind_python_callable
Bind a Python callable to a Rust function.
bind_python_getter
Bind a Python getter to a Rust function.
bind_python_self_callable
Bind a Python callable of self to a Rust function.
bind_python_self_getter
Bind a Python getter of self to a Rust function.
bind_python_self_setter
Bind a Python setter of self to a Rust function.
bind_python_setter
Bind a Python setter to a Rust function.
python_wrap_with_gil
Wrapper for inner Python bindings (with py: pyo3::Python as the first argument) into a Rust function that can be called without the py argument while returning values wrapper around pyo3::Py.
test_bind_python_getter
Write a test for the existence of Python getter.