Struct quad_compat_rhai::EvalContext [−][src]
pub struct EvalContext<'a, 'x, 'px, 'm, 's, 'b, 't, 'pt> { /* fields omitted */ }
Expand description
Context of a script evaluation process.
Implementations
pub fn eval_expression_tree(
&mut self,
expr: &Expression<'_>
) -> Result<Dynamic, Box<EvalAltResult>>
pub fn eval_expression_tree(
&mut self,
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
.
Get an iterator over the current set of modules imported via import
statements.
(internals) The current set of modules imported via import
statements.
Exported under the internals
feature only.
Get an iterator over the namespaces containing definition of all script-defined functions.
(internals) The current set of namespaces containing definitions of all script-defined functions.
Exported under the internals
feature only.
Mutable reference to the current bound this
pointer, if any.
The current nesting level of function calls.