Adds a new extension type to the module. This is a convenience function that initializes the `py_class!()`, sets `new_type.__module__` to this module's name, and adds the type to this module.
(&self, py: Python<'_>)
| 152 | /// sets `new_type.__module__` to this module's name, |
| 153 | /// and adds the type to this module. |
| 154 | pub fn add_class<T>(&self, py: Python<'_>) -> PyResult<()> |
| 155 | where |
| 156 | T: PythonObjectFromPyClassMacro, |
| 157 | { |
| 158 | T::add_to_module(py, self) |
| 159 | } |
| 160 | } |
nothing calls this directly
no outgoing calls
no test coverage detected