pyo3

Module conversion

Source
Expand description

Defines conversions between Rust and Python types.

Traitsยง

  • Returns a borrowed pointer to a Python object.
  • Extract a type from a Python object.
  • Expected form of FromPyObject to be used in a future PyO3 release.
  • IntoPyDeprecated
    Defines a conversion from a Rust type to a Python object.
  • Defines a conversion from a Rust type to a Python object, which may fail.
  • ToPyObjectDeprecated
    Conversion trait that allows various objects to be converted into PyObject.