Type Alias arithmetic_eval::error::EvalResult

source ·
pub type EvalResult<T> = Result<Value<T>, Error>;
Expand description

Result of an expression evaluation.

Aliased Type§

enum EvalResult<T> {
    Ok(Value<T>),
    Err(Error),
}

Variants§

§1.0.0

Ok(Value<T>)

Contains the success value

§1.0.0

Err(Error)

Contains the error value

Trait Implementations§

source§

impl<T, U> IntoEvalResult<T> for Result<U, Error>where U: IntoEvalResult<T>,

source§

fn into_eval_result(self) -> Result<Value<T>, ErrorOutput>

Performs the conversion.