pub struct SymbolTable { /* private fields */ }Implementations§
Source§impl SymbolTable
impl SymbolTable
pub fn new() -> Self
pub fn with_builtins() -> Self
pub fn with_builtins_for_wasm() -> Self
pub fn register_builtins(&mut self)
pub fn define(&mut self, symbol: Symbol)
pub fn lookup(&self, name: &str) -> Option<&Symbol>
pub fn lookup_mut(&mut self, name: &str) -> Option<&mut Symbol>
pub fn remove(&mut self, name: &str) -> Option<Symbol>
pub fn contains(&self, name: &str) -> bool
pub fn iter(&self) -> impl Iterator<Item = (&String, &Symbol)>
pub fn define_struct_fields( &mut self, name: impl Into<String>, fields: Vec<String>, )
pub fn struct_fields(&self, name: &str) -> Option<&[String]>
Trait Implementations§
Source§impl Clone for SymbolTable
impl Clone for SymbolTable
Source§fn clone(&self) -> SymbolTable
fn clone(&self) -> SymbolTable
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 SymbolTable
impl Debug for SymbolTable
Source§impl Default for SymbolTable
impl Default for SymbolTable
Source§fn default() -> SymbolTable
fn default() -> SymbolTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SymbolTable
impl RefUnwindSafe for SymbolTable
impl Send for SymbolTable
impl Sync for SymbolTable
impl Unpin for SymbolTable
impl UnsafeUnpin for SymbolTable
impl UnwindSafe for SymbolTable
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