pub trait ToErrKind {
// Required method
fn err_kind(&self) -> ErrorKind;
}
Expand description
A type which can produce an ErrorKind
.
impl ToErrKind for T
is conceptually the same as impl Into<ErrKind> for &T
(note
the added &
). This trait seems more clear.