Struct rhai::EncapsulatedEnviron
source · pub struct EncapsulatedEnviron {
pub lib: Shared<Module>,
pub imports: Box<StaticVec<(ImmutableString, Shared<Module>)>>,
pub constants: Option<Shared<Locked<BTreeMap<ImmutableString, Dynamic>>>>,
}
Expand description
(internals) Encapsulated AST environment.
Exported under the internals
feature only.
- functions defined within the same AST
- the stack of imported modules
- global constants
Fields§
§lib: Shared<Module>
Functions defined within the same AST
.
imports: Box<StaticVec<(ImmutableString, Shared<Module>)>>
Imported modules.
constants: Option<Shared<Locked<BTreeMap<ImmutableString, Dynamic>>>>
Globally-defined constants.
Trait Implementations§
source§impl Clone for EncapsulatedEnviron
impl Clone for EncapsulatedEnviron
source§fn clone(&self) -> EncapsulatedEnviron
fn clone(&self) -> EncapsulatedEnviron
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more