Evaluatable

Trait Evaluatable 

Source
pub trait Evaluatable {
    // Required method
    fn eval(&self, shell: &mut Shell) -> Result<i64, EvalError>;
}
Expand description

Trait implemented by evaluatable arithmetic expressions.

Required Methods§

Source

fn eval(&self, shell: &mut Shell) -> Result<i64, EvalError>

Evaluate the given arithmetic expression, returning the resulting numeric value.

§Arguments
  • shell - The shell to use for evaluation.

Implementations on Foreign Types§

Source§

impl Evaluatable for ArithmeticExpr

Source§

fn eval(&self, shell: &mut Shell) -> Result<i64, EvalError>

Implementors§