pub trait ToPyErr { }
Expand description
Python exceptions that can be converted to PyErr
.
This is used to implement [From<Bound<'_, T>> for PyErr
].
Users should not need to implement this trait directly. It is implemented automatically in the
crate::import_exception!
and crate::create_exception!
macros.