pyo3

Module conversion

Source
Expand description

Defines conversions between Rust and Python types.

Traitsยง

AsPyPointer
Returns a borrowed pointer to a Python object.
FromPyObject
Extract a type from a Python object.
FromPyObjectBound
Expected form of FromPyObject to be used in a future PyO3 release.
IntoPyDeprecated
Defines a conversion from a Rust type to a Python object.
IntoPyObject
Defines a conversion from a Rust type to a Python object, which may fail.
IntoPyObjectExt
Convenience methods for common usages of IntoPyObject. Every type that implements IntoPyObject also implements this trait.
ToPyObjectDeprecated
Conversion trait that allows various objects to be converted into PyObject.