Enum earlgrey::Symbol [] [src]

pub enum Symbol {
    NonTerm(String),
    Terminal(StringBox<Fn(&str) -> bool>),
}

Variants

Methods

impl Symbol
[src]

Trait Implementations

impl<'a> From<&'a str> for Symbol
[src]

Performs the conversion.

impl<'a, F> From<(&'a str, F)> for Symbol where F: 'static + Fn(&str) -> bool
[src]

Performs the conversion.

impl Hash for Symbol
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl PartialEq for Symbol
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Symbol
[src]