Skip to main content

Module type_object

Module type_object 

Source
Expand description

Python type object information

Re-exportsยง

use crate::ffi_ptr_ext::FfiPtrExt; ๐Ÿ”’
use crate::inspect::PyStaticExpr; ๐Ÿ”’ experimental-inspect
use crate::inspect::type_hint_identifier; ๐Ÿ”’ experimental-inspect
use crate::types::PyAny; ๐Ÿ”’
use crate::types::PyType; ๐Ÿ”’
use crate::Bound; ๐Ÿ”’
use crate::Python; ๐Ÿ”’
use crate::ffi; ๐Ÿ”’
use core::ptr; ๐Ÿ”’

Traitsยง

PyLayout
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.
PySizedLayout
T: PySizedLayout<U> represents that T is not a instance of PyVarObject.
PyTypeCheck
Implemented by types which can be used as a concrete Python type inside Py<T> smart pointers.
PyTypeInfo
Python type information. All Python native types (e.g., PyDict) and #[pyclass] structs implement this trait.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here