pub trait ToPython<P: ToPyObject> {
// Required method
fn to_python(&self, py: Python<'_>) -> PyResult<P>;
}
Expand description
Convert from a Rust type into a Python type.
pub trait ToPython<P: ToPyObject> {
// Required method
fn to_python(&self, py: Python<'_>) -> PyResult<P>;
}
Convert from a Rust type into a Python type.