Trait asciimath::Evaluate [] [src]

pub trait Evaluate {
    fn eval_with(&self, scope: &Scope) -> Result<f64, Error>;
fn eval(&self) -> Result<f64, Error>; }

Required Methods

Evaluates the node/expression with a given variable scope.

Evaluates the node/expression without any variables.

This is just a shortcut to evaluate expressions without variables.

Implementors