pub struct Scope {
pub entries: HashMap<String, Type>,
}Expand description
Represents a variable scope during static analysis.
A scope tracks the variables and their types that are currently in scope during type checking. This is used to resolve variable references and ensure type correctness.
Fields§
§entries: HashMap<String, Type>Map of variable names to their types.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Scope
impl RefUnwindSafe for Scope
impl Send for Scope
impl Sync for Scope
impl Unpin 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