Enum gallop::GrammarError
[−]
[src]
pub enum GrammarError<'a> { NoStartSymbol, EmptyGrammar, InvalidGrammar { non_terminal: NonTerminal<'a>, rule: Rule<'a>, rule_element: RuleElement<'a>, }, Conflict { non_terminal: NonTerminal<'a>, rule: Rule<'a>, rule_element: RuleElement<'a>, }, }
Variants
NoStartSymbol
EmptyGrammar
InvalidGrammar
Fields of InvalidGrammar
non_terminal: NonTerminal<'a> | |
rule: Rule<'a> | |
rule_element: RuleElement<'a> |
Conflict
Fields of Conflict
non_terminal: NonTerminal<'a> | |
rule: Rule<'a> | |
rule_element: RuleElement<'a> |
Trait Implementations
impl<'a> Clone for GrammarError<'a>
[src]
fn clone(&self) -> GrammarError<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl<'a> Debug for GrammarError<'a>
[src]
impl<'a> PartialEq for GrammarError<'a>
[src]
fn eq(&self, __arg_0: &GrammarError<'a>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &GrammarError<'a>) -> bool
This method tests for !=
.