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!andpython_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
selfto a Rust function. - bind_
python_ self_ getter - Bind a Python getter of
selfto a Rust function. - bind_
python_ self_ setter - Bind a Python setter of
selfto 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::Pythonas the first argument) into a Rust function that can be called without thepyargument while returning values wrapper aroundpyo3::Py. - test_
bind_ python_ getter - Write a test for the existence of Python getter.