[−][src]Trait cfg::ContextFreeRef
This trait is currently needed to make the associated Rules
iterator generic over a lifetime
parameter.
Associated Types
type RuleRef: GrammarRule<History = <Self::Target as RuleContainer>::History> + Copy + 'a
Immutable reference to a rule.
type Rules: Iterator<Item = Self::RuleRef>
Iterator over immutable references to the grammar's rules.
Required methods
Loading content...Provided methods
fn reverse(self) -> Self::Target where
<Self::Target as RuleContainer>::History: Clone,
Self::Target: EmptyRuleContainer,
<Self::Target as RuleContainer>::History: Clone,
Self::Target: EmptyRuleContainer,
Reverses the grammar.
Implementors
impl<'a> ContextFreeRef<'a> for &'a BinarizedGrammar
[src]
type RuleRef = RuleRef<'a, History>
type Rules = BinarizedRules<'a, History>
fn rules(self) -> Self::Rules
[src]
impl<'a, H> ContextFreeRef<'a> for &'a BinarizedCfg<H> where
H: Binarize + 'a,
[src]
H: Binarize + 'a,
impl<'a, H, Hs> ContextFreeRef<'a> for &'a Cfg<H, Hs> where
H: 'a,
Hs: Clone + RewriteSequence<Rewritten = H>,
[src]
H: 'a,
Hs: Clone + RewriteSequence<Rewritten = H>,