pub struct ScopeStack { /* private fields */ }Implementations§
Source§impl ScopeStack
impl ScopeStack
pub fn new() -> Self
pub fn push_scope(&mut self)
pub fn pop_scope(&mut self)
pub fn bind(&mut self, name: &str, entry: ScopeEntry)
pub fn lookup(&self, name: &str) -> Option<&ScopeEntry>
pub fn lookup_mut(&mut self, name: &str) -> Option<&mut ScopeEntry>
Trait Implementations§
Source§impl Debug for ScopeStack
impl Debug for ScopeStack
Source§impl Default for ScopeStack
impl Default for ScopeStack
Source§fn default() -> ScopeStack
fn default() -> ScopeStack
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScopeStack
impl RefUnwindSafe for ScopeStack
impl Send for ScopeStack
impl Sync for ScopeStack
impl Unpin for ScopeStack
impl UnwindSafe for ScopeStack
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