pub struct SymbolTableScopes(/* private fields */);
Expand description
A stack of symbol tables of different scopes. Topmost is the current scope.
Implementations§
Source§impl SymbolTableScopes
impl SymbolTableScopes
pub fn new() -> Self
pub fn push(&mut self, table: SymbolTable)
pub fn pop(&mut self) -> Option<SymbolTable>
pub fn new_scope(&mut self)
pub fn insert(&mut self, key: String, value: SymbolTableNode)
pub fn get(&self, key: &str) -> Option<&SymbolTableNode>
Trait Implementations§
Source§impl Clone for SymbolTableScopes
impl Clone for SymbolTableScopes
Source§fn clone(&self) -> SymbolTableScopes
fn clone(&self) -> SymbolTableScopes
Returns a copy 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 SymbolTableScopes
impl Debug for SymbolTableScopes
Auto Trait Implementations§
impl Freeze for SymbolTableScopes
impl RefUnwindSafe for SymbolTableScopes
impl Send for SymbolTableScopes
impl Sync for SymbolTableScopes
impl Unpin for SymbolTableScopes
impl UnwindSafe for SymbolTableScopes
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