Trait pyo3::conversion::IntoPy [−][src]
Expand description
Similar to std::convert::Into, just that it requires a gil token.
IntoPy<PyObject>
(aka IntoPy<Py<PyAny>>
) should be implemented to define a conversion from
Rust to Python which can be used by most of PyO3’s methods.
Required methods
Implementations on Foreign Types
Converts ()
to an empty Python tuple.