pub struct LocalVars { /* private fields */ }Expand description
Variables a direct eval declared in one function call.
A sloppy eval declares its vars in the caller’s variable environment, not on the
global object: function f() { eval("var x = 1") } f(); x is a ReferenceError, and
two calls to f get two xs. Each entry therefore records the phase it was declared
in, so a lookup from the parameter list cannot see a body declaration.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for LocalVars
impl !RefUnwindSafe for LocalVars
impl !Send for LocalVars
impl !Sync for LocalVars
impl !UnwindSafe for LocalVars
impl Forget for LocalVars
impl Move for LocalVars
impl Unpin for LocalVars
impl UnsafeUnpin for LocalVars
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