Enum bnf::Term
[−]
[src]
pub enum Term { Terminal(String), Nonterminal(String), }
A Term can represent a Terminal or Nonterminal node
Variants
Terminal(String)
Nonterminal(String)
Methods
impl Term
[src]
Trait Implementations
impl PartialEq for Term
[src]
fn eq(&self, __arg_0: &Term) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Term) -> bool
[src]
This method tests for !=
.
impl Debug for Term
[src]
impl Clone for Term
[src]
fn clone(&self) -> Term
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl FromStr for Term
[src]
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
Parses a string s
to return a value of this type. Read more