Expand description
Implementation details of #[pymodule] which need to be accessible from proc-macro generated code.
Structs§
- AddClass
ToModule - For adding a class to a module.
- AddType
ToModule - For adding native types (non-pyclass) to a module.
- Module
Def Syncwrapper offfi::PyModuleDef.- PyModule
Slots - Wrapper to safely store module slots, to be used in a
ModuleDef. - PyModule
Slots Builder - Builder to create
PyModuleSlots. The size of the number of slots desired must be known up front, and N needs to be at least one greater than the number of actual slots pushed due to the need to have a zeroed element on the end.
Constants§
Traits§
- PyAdd
ToModule - Trait to add an element (class, function…) to a module.
Type Aliases§
- Module
Exec Slot - Type of the exec slot used to initialise module contents