[][src]Trait asciimath::Evaluate

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.

Loading content...

Implementors

Loading content...