pub struct EvalScope {
pub names: Vec<(String, Gc<Cell>)>,
}Expand description
The bindings a direct eval made visible, as name → cell.
Only bindings that already live in a cell appear here, because sharing their
identity is the point: a closure created by the eval must observe later writes to
the same variable, and a copy would not. The compiler puts every binding of a
function that contains a direct eval into a cell, so in practice that is all of
them.
Fields§
§names: Vec<(String, Gc<Cell>)>In lookup order: the innermost binding for a name first.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for EvalScope
impl !Send for EvalScope
impl !Sync for EvalScope
impl !UnwindSafe for EvalScope
impl Forget for EvalScope
impl Freeze for EvalScope
impl Move for EvalScope
impl Unpin for EvalScope
impl UnsafeUnpin for EvalScope
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