Trait pyo3::typeob::PyTypeObject[][src]

pub trait PyTypeObject {
    fn init_type();
fn type_object() -> Py<PyType>; fn create(py: Python) -> PyResult<PyRawObject>
    where
        Self: Sized + PyObjectAlloc<Self> + PyTypeInfo
, { ... } }

Trait implemented by Python object types that have a corresponding type object.

Required Methods

Initialize type object

Retrieves the type object for this Python object type.

Provided Methods

Create PyRawObject which can be initialized with rust value

Implementors