Struct amfnengine::core::map_symbol::MapSymbol
[−]pub struct MapSymbol { /* private fields */ }
Implementations
impl MapSymbol
impl MapSymbol
The AmFn symbol table implementation.
pub fn clear(&mut self)
pub fn clear(&mut self)
Clear all symbols from the symbol table.
pub fn get_symbol(&self, name: &str) -> Option<&ElemSymbol>
pub fn get_symbol(&self, name: &str) -> Option<&ElemSymbol>
pub fn get_symbol_mut(&mut self, name: &str) -> Option<&mut ElemSymbol>
pub fn get_symbol_mut(&mut self, name: &str) -> Option<&mut ElemSymbol>
pub fn add_symbol(&mut self, name: &str, elem_symbol: ElemSymbol)
pub fn add_symbol(&mut self, name: &str, elem_symbol: ElemSymbol)
Add the symbol to the symbol table.
Arguments
name
- The symbol name.elem_symbol
- The symbol element.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MapSymbol
impl Send for MapSymbol
impl Sync for MapSymbol
impl Unpin for MapSymbol
impl UnwindSafe for MapSymbol
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more