Trait rigetti_pyo3::ToPython
source · 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.
pub trait ToPython<T: ToPyObject> {
fn to_python(&self, py: Python<'_>) -> PyResult<Py<T>>;
}Convert from a Rust type into a Python type.