pub struct SymbolTable<'int, T> { /* private fields */ }Implementations§
Source§impl<'int, T> SymbolTable<'int, T>
impl<'int, T> SymbolTable<'int, T>
pub fn clear(&mut self)
pub fn is_empty(&self) -> bool
pub fn push(&mut self, name: Interned<'int, str>, symbol: T)
pub fn pop(&mut self, name: Interned<'int, str>) -> Option<T>
pub fn push_transparent_block(&mut self)
pub fn push_opaque_block(&mut self)
pub fn pop_block(&mut self)
pub fn get<Q>(&self, name: &Q) -> Option<&T>
pub fn get_mut<Q>(&mut self, name: &Q) -> Option<&mut T>
Trait Implementations§
Source§impl<'int, T: Debug> Debug for SymbolTable<'int, T>
impl<'int, T: Debug> Debug for SymbolTable<'int, T>
Auto Trait Implementations§
impl<'int, T> Freeze for SymbolTable<'int, T>
impl<'int, T> RefUnwindSafe for SymbolTable<'int, T>where
T: RefUnwindSafe,
impl<'int, T> Send for SymbolTable<'int, T>where
T: Send,
impl<'int, T> Sync for SymbolTable<'int, T>where
T: Sync,
impl<'int, T> Unpin for SymbolTable<'int, T>where
T: Unpin,
impl<'int, T> UnwindSafe for SymbolTable<'int, T>where
T: UnwindSafe,
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