pub trait ToPythonError {
    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§

Convert this error into a PyErr.

Implementations on Foreign Types§

Implementors§