Enum toxearley::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]
fn nonterm<S: Into<String>>(s: S) -> Self
fn terminal<S, F>(name: S, f: F) -> Self where
S: Into<String>,
F: 'static + Fn(&str) -> bool,
S: Into<String>,
F: 'static + Fn(&str) -> bool,
fn name<'a>(&'a self) -> &'a str
Trait Implementations
impl Debug for Symbol
[src]
impl Hash for Symbol
[src]
fn hash<H: Hasher>(&self, state: &mut H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
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 !=
.