Expand description
Defines conversions between Rust and Python types.
Traitsยง
- AsPy
Pointer - Returns a borrowed pointer to a Python object.
- From
PyObject - Extract a type from a Python object.
- From
PyObject Bound - Expected form of
FromPyObjectto be used in a future PyO3 release. - IntoPy
Deprecated - Defines a conversion from a Rust type to a Python object.
- Into
PyObject - Defines a conversion from a Rust type to a Python object, which may fail.
- Into
PyObject Ext - Convenience methods for common usages of
IntoPyObject. Every type that implementsIntoPyObjectalso implements this trait. - ToPy
Object Deprecated - Conversion trait that allows various objects to be converted into
PyObject.