Module puff_rs::python

source ·

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.
A container type for (mutably) accessing PyClass values
Initializer for our #[pyclass] system.
Represents a Python exception.
Represents a Python module object.
A wrapper type for an immutably borrowed value from a PyCell<T>.
A wrapper type for a mutably borrowed value from aPyCell<T>.
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::TryInto
Conversion trait that allows various objects to be converted into PyObject.

Functions

Type Definitions

A commonly-used alias for Py<PyAny>.
Represents the result of a Python call.

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.

Derive Macros