Struct quad_compat_rhai::EvalState [−][src]
pub struct EvalState {
pub always_search_scope: bool,
pub scope_level: usize,
// some fields omitted
}
Expand description
(internals) A type that holds all the current states of the Engine
.
Exported under the internals
feature only.
Fields
always_search_scope: bool
Normally, access to variables are parsed with a relative offset into the Scope
to avoid a lookup.
In some situation, e.g. after running an eval
statement, or after a custom syntax statement,
subsequent offsets may become mis-aligned.
When that happens, this flag is turned on to force a Scope
search by name.
scope_level: usize
Level of the current scope. The global (root) level is zero, a new block (or function call) is one level higher, and so on.
Implementations
Get the number of function resolution cache(s) in the stack.
Get a mutable reference to the current function resolution cache.
Push an empty function resolution cache onto the stack and make it current.
Rewind the function resolution caches stack to a particular size.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for EvalState
impl !UnwindSafe for EvalState
Blanket Implementations
Mutably borrows from an owned value. Read more