Trait coded::ToErrKind[][src]

pub trait ToErrKind {
    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.

Required methods

Implementations on Foreign Types

Implementors