Skip to main content

Module introspection

Module introspection 

Source
Available on crate feature experimental-inspect only.

Re-exportsยง

use crate::conversion::IntoPyObject; ๐Ÿ”’
use crate::impl_::pyclass::PyClassImpl; ๐Ÿ”’
use crate::inspect::PyStaticExpr; ๐Ÿ”’
use crate::pycell::impl_::PyClassObjectLayout; ๐Ÿ”’

Modulesยง

return_type ๐Ÿ”’
Seals PyReturnType so that types outside PyO3 cannot implement it.

Structsยง

SerializedIntrospectionFragment

Traitsยง

PyIntoPyObjectMaybeRefType
PyReturnType
Trait to guess a function Python return type

Functionsยง

escape_json_string
Escapes a string to be valid JSON. Does not add quotes around it
escaped_json_string_len
Number of bytes written by escape_json_string
is_disjoint_base
Whether T is laid out differently from its base class, making it a disjoint base at runtime.
typing_or_extensions_if_not_3_15
The module to import typing features new in Python 3.15 from: typing itself when targeting 3.15 or newer, typing_extensions otherwise.
โš ๏ธ Internal Docs โš ๏ธ Not Public API ๐Ÿ‘‰ Official Docs Here