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