[][src]Function pyo3::type_object::initialize_type

pub fn initialize_type<T>(py: Python) -> PyResult<*mut PyTypeObject> where
    T: PyObjectAlloc + PyTypeInfo + PyMethodsProtocol

Register new type in python object system.

Currently, module_name is always None, so it defaults to pyo3_extension