Trait conch_runtime::eval::ArithEval [−][src]
A trait for evaluating arithmetic expansions.
Required Methods
fn eval(&self, env: &mut E) -> Result<isize, ExpansionError>
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<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>,
impl<'a, T: ?Sized + ArithEval<E>, E: ?Sized> ArithEval<E> for &'a T
[src]
impl<'a, T: ?Sized + ArithEval<E>, E: ?Sized> ArithEval<E> for &'a T