pub(crate) fn err_or<T>(self, value: T) -> Result<T, Error> {
        match self.0 {
            Some(err) => Err(err),
            None => Ok(value),
        }
    }
/// Builds a result by returning the error contained in this builder, or the
/// given value if this builder contains no error
Builds a result by returning the error contained in this builder, or the
given value if this builder contains no error
Builds a result by returning the error contained in this builder or the given value if this builder contains no error
pub(crate) fn err_or<T>(self, value: T) -> Result<T, Error> {
        match self.0 {
            Some(err) => Err(err),
            None => Ok(value),
        }
    }
pub ( crate ) fn err_or < T > ( self , value : T ) -> Result < T , Error > { match self . 0 { Some ( err ) => Err ( err ) , None => Ok ( value ) , } }
Builds a result by returning the error contained in this builder, or the
given value if this builder contains no error
Builds a result by returning the error contained in this builder or the given value if this builder contains no error
self
value
T
self
value
T