Expand description
Python type object information
Traits§
- PyLayout
T: PyLayout<U>
represents thatT
is a concrete representation ofU
in the Python heap. E.g.,PyClassObject
is a concrete representation of allpyclass
es, andffi::PyObject
is ofPyAny
.- PySized
Layout T: PySizedLayout<U>
represents thatT
is not a instance ofPyVarObject
.- PyType
Check - Implemented by types which can be used as a concrete Python type inside
Py<T>
smart pointers. - PyType
Info - Python type information.
All Python native types (e.g.,
PyDict
) and#[pyclass]
structs implement this trait.