Struct rubble_templates_evaluators::simple::evaluator::SimpleEvaluationEngine [−][src]
pub struct SimpleEvaluationEngine { /* fields omitted */ }
Expand description
Simple evaluation engine providing basic features like variable and function evaluation.
This engine evaluates are variables, functions and literals in a code fragment and returns a resulting String. It might also return an error when encounters unexpected identifier or a variable with parameters. When it encounters a function, it tries to evaluate it and propagates any error that it returns.
This engine always uses the same Functions for evaluations, but can be supplied with different parameters during every evaluation.
Implementations
Trait Implementations
fn evaluate(
&self,
syntax_node: &SyntaxNode,
context: &mut Context
) -> Result<String, SyntaxError>
[src]Auto Trait Implementations
impl !RefUnwindSafe for SimpleEvaluationEngine
impl !Send for SimpleEvaluationEngine
impl !Sync for SimpleEvaluationEngine
impl Unpin for SimpleEvaluationEngine
impl !UnwindSafe for SimpleEvaluationEngine