pub trait ToPython<T: ToPyObject> {
    fn to_python(&self, py: Python<'_>) -> PyResult<Py<T>>;
}
Expand description

Convert from a Rust type into a Python type.

Required Methods§

Convert from Rust self into a Python type.

Errors

Any failure while converting to Python.

Implementations on Foreign Types§

Implementors§