Module pyo3::type_object
source · Expand description
Python type object information
Traits
T: PyLayout<U>
represents thatT
is a concrete representation ofU
in the Python heap. E.g.,PyCell
is a concrete representation of allpyclass
es, andffi::PyObject
is ofPyAny
.T: PySizedLayout<U>
represents thatT
is not a instance ofPyVarObject
. In addition, thatT
is a concrete representation ofU
.- Python type information. All Python native types (e.g.,
PyDict
) and#[pyclass]
structs implement this trait. - PyTypeObjectDeprecatedLegacy trait which previously held the
type_object
method now found onPyTypeInfo
.