Struct rubble_templates::evaluator::engine::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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.