Struct rhai::EncapsulatedEnviron
source · pub struct EncapsulatedEnviron {
pub lib: Shared<Module>,
pub imports: ThinVec<(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: ThinVec<(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 Freeze for EncapsulatedEnviron
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
source§impl<T> Variant for T
impl<T> Variant for T
source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert this
Variant
trait object to &mut dyn Any
.source§fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
fn as_boxed_any(self: Box<T>) -> Box<dyn Any>
Convert this
Variant
trait object to Box<dyn Any>
.