Skip to main content

Module introspection

Module introspection 

Source
Available on crate feature experimental-inspect only.

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