Trait rigetti_pyo3::PyTryFrom
source · pub trait PyTryFrom<T>: Sized {
fn py_try_from(py: Python<'_>, item: Py<T>) -> PyResult<Self>;
fn py_try_from_ref(py: Python<'_>, item: &T) -> PyResult<Self>;
}Expand description
Convert from a Python type to a Rust type.