Module pymodule

Source
Expand description

Implementation details of #[pymodule] which need to be accessible from proc-macro generated code.

Structs§

AddClassToModule
For adding a class to a module.
AddTypeToModule
For adding native types (non-pyclass) to a module.
ModuleDef
Sync wrapper of ffi::PyModuleDef.
ModuleInitializer
Wrapper to enable initializer to be used in const fns.

Traits§

PyAddToModule
Trait to add an element (class, function…) to a module.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here