Enum bnf::Term [] [src]

pub enum Term {
    Terminal(String),
    Nonterminal(String),
}

A Term can represent a Terminal or Nonterminal node

Variants

Methods

impl Term
[src]

[src]

Trait Implementations

impl PartialEq for Term
[src]

[src]

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

[src]

This method tests for !=.

impl Debug for Term
[src]

[src]

Formats the value using the given formatter.

impl Clone for Term
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl FromStr for Term
[src]

The associated error which can be returned from parsing.

[src]

Parses a string s to return a value of this type. Read more

impl Display for Term
[src]

[src]

Formats the value using the given formatter. Read more