Struct rubble_templates_evaluators::simple::evaluator::SimpleEvaluationEngine[][src]

pub struct SimpleEvaluationEngine { /* fields omitted */ }

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

impl SimpleEvaluationEngine[src]

pub fn from(
    functions: HashMap<String, Box<dyn Function>>
) -> SimpleEvaluationEngine
[src]

Trait Implementations

impl Evaluator for SimpleEvaluationEngine[src]

Auto Trait Implementations

impl !RefUnwindSafe for SimpleEvaluationEngine

impl !Send for SimpleEvaluationEngine

impl !Sync for SimpleEvaluationEngine

impl Unpin for SimpleEvaluationEngine

impl !UnwindSafe for SimpleEvaluationEngine

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.