Trait cfg::rule::GrammarRule
source · pub trait GrammarRule {
// Required methods
fn lhs(&self) -> Symbol;
fn rhs(&self) -> &[Symbol];
fn history_id(&self) -> HistoryId;
// Provided method
fn as_ref(&self) -> RuleRef<'_> { ... }
}
Expand description
Trait for rules of a context-free grammar.
Required Methods§
sourcefn history_id(&self) -> HistoryId
fn history_id(&self) -> HistoryId
Returns a reference to the history carried with the rule.