pub trait ResultExt {
type Value;
type Error;
fn err_into<E>(self) -> Result<Self::Value, E>
where
E: From<Self::Error>;
}
Expand description
A helper trait to map the error variant of a Result
to inferred type with From
/Into