pub type TriResult<T, Se> = Result<T, TriError<Se>>;Aliased Type§
pub enum TriResult<T, Se> {
Ok(T),
Err(TriError<Se>),
}Variants§
Trait Implementations§
Source§impl<T, S> TriResultHelper<T, S> for TriResult<T, S>
impl<T, S> TriResultHelper<T, S> for TriResult<T, S>
fn on_soft_err<F: FnOnce(S) -> Result<T>>(self, f: F) -> Result<T>
fn map_soft_err<F: FnOnce(S) -> U, U>(self, f: F) -> TriResult<T, U>
Source§fn elevate_err(self) -> Result<T>
fn elevate_err(self) -> Result<T>
If soft error, make it hard error.