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 moreAuto Trait Implementations§
impl !RefUnwindSafe for EncapsulatedEnviron
impl !Send for EncapsulatedEnviron
impl !Sync for EncapsulatedEnviron
impl Unpin for EncapsulatedEnviron
impl !UnwindSafe for EncapsulatedEnviron
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more