Struct rubble_templates::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
impl !RefUnwindSafe for Context
impl !UnwindSafe for Context