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.

Trait Implementations

Derived Implementations

impl Debug for SymbolSource

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

impl Clone for SymbolSource

fn clone(&self) -> SymbolSource

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