Trait cpython::PythonObjectWithTypeObject
source · [−]pub trait PythonObjectWithTypeObject: PythonObjectWithCheckedDowncast {
fn type_object(py: Python<'_>) -> PyType;
}
Expand description
Trait implemented by Python object types that have a corresponding type object.
Required Methods
sourcefn type_object(py: Python<'_>) -> PyType
fn type_object(py: Python<'_>) -> PyType
Retrieves the type object for this Python object type.