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

pub struct SymbolSource { /* fields omitted */ }

A source of numeric symbols.

Methods

impl SymbolSource[src]

pub fn new() -> Self[src]

Creates a source of numeric symbols with an empty symbol space.

pub fn sym<T>(&mut self) -> T where
    T: SymbolContainer
[src]

Returns generated symbols.

pub fn next_sym(&mut self) -> Symbol[src]

Generates a new unique symbol.

pub fn num_syms(&self) -> usize[src]

Returns the number of symbols in use.

Important traits for Generate<'a>
pub fn generate(&mut self) -> Generate[src]

Returns an iterator that generates symbols.

Trait Implementations

impl Clone for SymbolSource[src]

impl Default for SymbolSource[src]

impl Debug for SymbolSource[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]