Module pyo3::type_object

source ·
Expand description

Python type object information

Traits§

  • Specifies that this type has a “GIL-bound Reference” form.
  • T: PyLayout<U> represents that T is a concrete representation of U in the Python heap. E.g., PyClassObject is a concrete representation of all pyclasses, and ffi::PyObject is of PyAny.
  • T: PySizedLayout<U> represents that T is not a instance of PyVarObject. In addition, that T is a concrete representation of U.
  • Implemented by types which can be used as a concrete Python type inside Py<T> smart pointers.
  • Python type information. All Python native types (e.g., PyDict) and #[pyclass] structs implement this trait.

Functions§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here