Struct rubble_templates_core::evaluator::Context[][src]

pub struct Context { /* fields omitted */ }
Expand description

Context that is passed while evaluating an AST by an Evaluator.

Contains all variables and states that can be shared between functions during evaluations. Functions should be free to store any state that will be shared between function invocations.

Variables are stored in a map, keys are Strings and values are also Strings. State is stored in a heterogeneous container, which means that is accepts any struct. Structs in this store are identifier by their TypeId.

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.