Crate pyo3_macros_backend
source Β· [−]Expand description
This crate contains the implementation of the proc macro attributes
Modules
defs
pyproto
Code generation for the function that initializes a python module and adds classes and function.
proto_method
pyproto
pyproto
pyproto
Structs
The parsed arguments of the pyclass macro
Enums
The mechanism used to collect #[pymethods]
into the type object
Functions
Derive FromPyObject for enums and structs.
Collects all #[doc = ββ¦β] attributes into a TokenStream evaluating to a null-terminated string e.g. concat!(ββ¦β, β\nβ, β\0β)
Finds and takes care of the #[pyfn(β¦)] in #[pymodule]
Generates the function that is called by the python interpreter to initialize the native module