Module pyo3::type_object
source · Expand description
Python type object information
Traits
T: PyLayout<U>represents thatTis a concrete representation ofUin the Python heap. E.g.,PyCellis a concrete representation of allpyclasses, andffi::PyObjectis ofPyAny.T: PySizedLayout<U>represents thatTis not a instance ofPyVarObject. In addition, thatTis 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_objectmethod now found onPyTypeInfo.