pub struct Scope {
pub kind: ScopeKind,
pub parent: Option<ScopeId>,
pub node: NodeId,
pub strict: bool,
pub dynamic: bool,
/* private fields */
}Expand description
A scope: what made it, the scope around it, and its bindings.
Fields§
§kind: ScopeKind§parent: Option<ScopeId>§node: NodeIdThe node that makes it: the program, a function, a block, a
switch, a for, a catch clause, a with, a class, a
field, a static block. For the block Annex B puts around
if (a) function f() {}, the function.
strict: bool§dynamic: boolA direct eval in it or in a scope inside it, or it’s a with’s
body: code the analysis can’t see may read or declare names here.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Scope
impl Freeze for Scope
impl Move for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin for Scope
impl UnsafeUnpin for Scope
impl UnwindSafe 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