Crate pyo3_macros
source · [−]Expand description
This crate declares only the proc macro attributes, as a crate defining proc macro attributes must not contain any other public items.
Macros
Wraps a Rust function annotated with #[pyfunction]
.
Returns a function that takes a Python
instance and returns a Python module.
Attribute Macros
A proc macro used to expose Rust structs and fieldless enums as Python objects.
A proc macro used to expose Rust functions to Python.
A proc macro used to expose methods to Python.
A proc macro used to implement Python modules.