Trait 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§