pub struct ScopeStack { /* private fields */ }Implementations§
Source§impl ScopeStack
impl ScopeStack
pub fn new() -> Self
pub fn push(&mut self)
pub fn pop(&mut self)
pub fn clear(&mut self)
pub fn declare(&mut self, name: String, id: VarId)
pub fn resolve(&self, name: &str) -> Option<VarId>
pub fn contains_in_current_scope(&self, name: &str) -> bool
pub fn visible_bindings(&self) -> BTreeMap<String, VarId>
Trait Implementations§
Source§impl Clone for ScopeStack
impl Clone for ScopeStack
Source§fn clone(&self) -> ScopeStack
fn clone(&self) -> ScopeStack
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScopeStack
impl Debug for ScopeStack
Auto Trait Implementations§
impl Freeze for ScopeStack
impl RefUnwindSafe for ScopeStack
impl Send for ScopeStack
impl Sync for ScopeStack
impl Unpin for ScopeStack
impl UnsafeUnpin 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