Struct librsnek::compiler::symbol::SymTable
[−]
[src]
struct SymTable<T>(RefCell<SymIndex<T>>)
where
T: Hash + Eq + Ord;
Methods
impl<T> SymTable<T> where
T: Clone + Hash + Eq + Ord,
[src]
T: Clone + Hash + Eq + Ord,
fn new() -> Self
fn index(&self) -> RefMut<SymIndex<T>>
fn add(&self, scope: &Descriptor<Scope>, value: &T) -> Result<(), Error>
Trait Implementations
impl<T: Debug> Debug for SymTable<T> where
T: Hash + Eq + Ord,
[src]
T: Hash + Eq + Ord,
impl<T: Clone> Clone for SymTable<T> where
T: Hash + Eq + Ord,
[src]
T: Hash + Eq + Ord,
fn clone(&self) -> SymTable<T>
Returns a copy of the value.
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
.