Trait asciimath::Evaluate
[−]
[src]
pub trait Evaluate { fn eval_with(&self, scope: &Scope) -> Result<f64, Error>; fn eval(&self) -> Result<f64, Error>; }
Required Methods
fn eval_with(&self, scope: &Scope) -> Result<f64, Error>
Evaluates the node/expression with a given variable scope.
fn eval(&self) -> Result<f64, Error>
Evaluates the node/expression without any variables.
This is just a shortcut to evaluate expressions without variables.