Struct branchy::UniformRandomRuleSelector [−][src]
pub struct UniformRandomRuleSelector;
Expand description
Default rule selector. Randomly selects one of the matching rules for every encountered non-terminal symbol.
Implementations
Trait Implementations
impl Default for UniformRandomRuleSelector
[src]
impl Default for UniformRandomRuleSelector
[src]impl<Nt, T> RuleSelector<Nt, T> for UniformRandomRuleSelector
[src]
impl<Nt, T> RuleSelector<Nt, T> for UniformRandomRuleSelector
[src]fn select_matching_rule<'a>(
&self,
matching_rules: &[&'a Rule<Nt, T>]
) -> Option<&'a Rule<Nt, T>>
[src]
&self,
matching_rules: &[&'a Rule<Nt, T>]
) -> Option<&'a Rule<Nt, T>>
fn select_rule<'a>(
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Option<&'a Rule<Nt, T>> where
Nt: NonterminalValue,
[src]
&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,
[src]
&self,
all_rules: &'a [Rule<Nt, T>],
nonterm_value: &Nt
) -> Vec<&'a Rule<Nt, T>> where
Nt: NonterminalValue,
Auto Trait Implementations
impl RefUnwindSafe for UniformRandomRuleSelector
impl Send for UniformRandomRuleSelector
impl Sync for UniformRandomRuleSelector
impl Unpin for UniformRandomRuleSelector
impl UnwindSafe for UniformRandomRuleSelector
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,