Struct cfg::symbol::source::SymbolSource
[−]
[src]
pub struct SymbolSource { // some fields omitted }
A source of numeric symbols.
Methods
impl SymbolSource
fn new() -> Self
Creates a source of numeric symbols with an empty symbol space.
fn sym<T>(&mut self) -> T where T: SymbolContainer
Returns generated symbols.
fn next_sym(&mut self) -> Symbol
Generates a new unique symbol.
fn num_syms(&self) -> usize
Returns the number of symbols in use.
fn generate(&mut self) -> Generate
Returns an iterator that generates symbols.