Crate pyo3_macros_backend

Source
Expand description

This crate contains the implementation of the proc macro attributes

Structs§

PyClassArgs
The parsed arguments of the pyclass macro
PyFunctionOptions
PyModuleOptions

Enums§

PyClassMethodsType
The mechanism used to collect #[pymethods] into the type object

Functions§

build_derive_from_pyobject
Derive FromPyObject for enums and structs.
build_derive_into_pyobject
build_py_class
build_py_enum
build_py_function
build_py_methods
get_doc
Collects all #[doc = “…”] attributes into a TokenStream evaluating to a null-terminated string.
pymodule_function_impl
Generates the function that is called by the python interpreter to initialize the native module
pymodule_module_impl