Struct rhai::EvalState [−][src]
pub struct EvalState {
pub always_search: bool,
pub scope_level: usize,
pub operations: u64,
pub modules: usize,
}Expand description
[INTERNALS] A type that holds all the current states of the Engine.
Exported under the internals feature only.
WARNING
This type is volatile and may change.
Fields
always_search: boolNormally, 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, subsequent offsets become mis-aligned.
When that happens, this flag is turned on to force a scope lookup by name.
scope_level: usizeLevel of the current scope. The global (root) level is zero, a new block (or function call) is one level higher, and so on.
operations: u64Number of operations performed.
modules: usizeNumber of modules loaded.
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for State
impl UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more