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