pub struct Scope {
pub inst: Option<Rc<RefCell<RecInst>>>,
pub locals: Rc<HashMap<String, Value>>,
pub root_name: String,
pub menv: Option<Rc<Env>>,
}Expand description
an evaluation scope: the enclosing instance, the local variables, the root, the module environment
Fields§
§inst: Option<Rc<RefCell<RecInst>>>the enclosing instance
locals: Rc<HashMap<String, Value>>the local variables
root_name: Stringthe root
menv: Option<Rc<Env>>the module environment
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Scope
impl !Send for Scope
impl !Sync for Scope
impl !UnwindSafe for Scope
impl Freeze for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
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