Modules
Macros
Wraps a Rust function annotated with
#[pyfunction].Structs
RAII type that represents the Global Interpreter Lock acquisition.
A GIL-independent reference to an object allocated on the Python heap.
Represents any Python object.
Initializer for our
#[pyclass] system.Represents a Python exception.
A marker token that represents holding the GIL.
Traits
Extract a type from a Python object.
Defines a conversion from a Rust type to a Python object.
Returns an owned pointer to a Python object.
Trait implemented by Python object types that allow a checked downcast.
If
T implements PyTryFrom, we can convert &PyAny to &T.Trait implemented by Python object types that allow a checked downcast.
This trait is similar to
std::convert::TryIntoConversion trait that allows various objects to be converted into
PyObject.Functions
Type Definitions
Attribute Macros
A proc macro used to expose Rust functions to Python.
A proc macro used to expose methods to Python.
A proc macro used to implement Python modules.