Trait conch_runtime::eval::ArithEval[][src]

pub trait ArithEval<E: ?Sized> {
    fn eval(&self, env: &mut E) -> Result<isize, ExpansionError>;
}

A trait for evaluating arithmetic expansions.

Required Methods

Evaluates an arithmetic expression in the context of an environment.

A mutable reference to the environment is needed since an arithmetic expression could mutate environment variables.

Implementations on Foreign Types

impl<T, E: ?Sized> ArithEval<E> for Arithmetic<T> where
    T: Borrow<String> + Clone,
    E: VariableEnvironment,
    E::VarName: Borrow<String> + From<T>,
    E::Var: Borrow<String> + From<String>, 
[src]

impl<'a, T: ?Sized + ArithEval<E>, E: ?Sized> ArithEval<E> for &'a T
[src]

Implementors