Trait asciimath::Evaluate [] [src]

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

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