Struct python_ast::symbols::SymbolTableScopes
source · 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 moreAuto Trait Implementations§
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