[−][src]Trait branchy::RuleSelector
Implement this trait if you want to provide custom rule selection logic.
See crate docs for an example.
Required methods
Loading content...Provided methods
fn select_rule<'a>(
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Option<&'a Rule<Nt, T>> where
Nt: NonterminalValue,
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Option<&'a Rule<Nt, T>> where
Nt: NonterminalValue,
fn find_matching_rules<'a>(
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Vec<&'a Rule<Nt, T>> where
Nt: NonterminalValue,
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Vec<&'a Rule<Nt, T>> where
Nt: NonterminalValue,