Struct rhai::EvalContext [−][src]
pub struct EvalContext<'e, 'a, 's, 'm, 't, 'd: 't> { /* fields omitted */ }
Expand description
Context of a script evaluation process.
Implementations
[INTERNALS] The current set of modules imported via import
statements.
Available under the internals
feature only.
The global namespace containing definition of all script-defined functions.
The current nesting level of function calls.
pub fn eval_expression_tree(
&mut self,
scope: &mut Scope<'_>,
expr: &Expression<'_>
) -> Result<Dynamic, Box<EvalAltResult>>
pub fn eval_expression_tree(
&mut self,
scope: &mut Scope<'_>,
expr: &Expression<'_>
) -> Result<Dynamic, Box<EvalAltResult>>
Evaluate an expression tree.
WARNING - Low Level API
This function is very low level. It evaluates an expression from an AST.