Trait rigetti_pyo3::ToPythonError

source ·
pub trait ToPythonError {
    // Required method
    fn to_py_err(self) -> PyErr;
}
Expand description

Implemented by error types generated with py_wrap_error.

Trait-ifies the ability to convert an error into a PyErr.

Required Methods§

source

fn to_py_err(self) -> PyErr

Convert this error into a PyErr.

Implementations on Foreign Types§

source§

impl ToPythonError for Infallible

source§

impl ToPythonError for PyErr

Implementors§