Enum earlgrey::Symbol
[−]
[src]
pub enum Symbol { NonTerm(String), Terminal(String, Box<Fn(&str) -> bool>), }
Variants
NonTerm(String)
Terminal(String, Box<Fn(&str) -> bool>)
Methods
impl Symbol
[src]
Trait Implementations
impl<'a> From<&'a str> for Symbol
[src]
impl<'a, F> From<(&'a str, F)> for Symbol where F: 'static + Fn(&str) -> bool
[src]
impl Hash for Symbol
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl PartialEq for Symbol
[src]
fn eq(&self, other: &Symbol) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.