Module pyo3::type_object [−][src]
Expand description
Python type object information
Traits
Marker type indicates that Self
can be a base layout of PyClass
.
T: PyLayout<U>
represents that T
is a concrete representaion of U
in Python heap.
E.g., PyCell
is a concrete representaion of all pyclass
es, and ffi::PyObject
is of PyAny
.
T: PySizedLayout<U>
represents T
is not a instance of
PyVarObject
.
, in addition that T
is a concrete representaion of U
.
Python type information.
All Python native types(e.g., PyDict
) and #[pyclass]
structs implement this trait.
Python object types that have a corresponding type object.