Struct cfg::symbol::source::SymbolSource [] [src]

pub struct SymbolSource {
    // some fields omitted
}

A source of numeric symbols.

Methods

impl SymbolSource
[src]

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.

Trait Implementations

impl Debug for SymbolSource
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for SymbolSource
[src]

fn clone(&self) -> SymbolSource

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more