pub trait ToFailure<T, E> {
// Required method
fn to_failure(self) -> Result<T, Err<E>>;
}Expand description
Convert Error to Failure
pub trait ToFailure<T, E> {
// Required method
fn to_failure(self) -> Result<T, Err<E>>;
}Convert Error to Failure