[−][src]Struct branchy::UniformRandomRuleSelector
Default rule selector. Randomly selects one of the matching rules for every encountered non-terminal symbol.
Methods
impl UniformRandomRuleSelector
[src]
Trait Implementations
impl Default 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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,