Expand description
Python type object information
Re-exportsยง
use crate::ffi_ptr_ext::FfiPtrExt;๐use crate::inspect::PyStaticExpr;๐experimental-inspectuse crate::inspect::type_hint_identifier;๐experimental-inspectuse 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 thatTis a concrete representation ofUin the Python heap. E.g.,PyClassObjectis a concrete representation of allpyclasses, andffi::PyObjectis ofPyAny.- PySized
Layout T: PySizedLayout<U>represents thatTis 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.