Trait rubble_templates_core::evaluator::Evaluator[][src]

pub trait Evaluator {
    fn evaluate(
        &self,
        syntax_node: &SyntaxNode,
        context: &mut Context
    ) -> Result<String, SyntaxError>; }

Trait that describes an ability to evaluate code in template.

Any struct that implements this trait should be able to interpret a given AST and evaluate it. AST are not constructed by the Evaluator, they are consumed by it.

Required methods

fn evaluate(
    &self,
    syntax_node: &SyntaxNode,
    context: &mut Context
) -> Result<String, SyntaxError>
[src]

Loading content...

Implementors

Loading content...