Trait cfg::ContextFreeRef
[−]
[src]
pub trait ContextFreeRef<'a>: Deref where
Self::Target: ContextFree, { type RuleRef: GrammarRule<History = <Self::Target as RuleContainer>::History> + Copy + 'a; type Rules: Iterator<Item = Self::RuleRef>; fn rules(self) -> Self::Rules; }
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
Implementors
impl<'a, H> ContextFreeRef<'a> for &'a BinarizedCfg<H> where
H: Binarize + 'a,impl<'a, H, Hs> ContextFreeRef<'a> for &'a Cfg<H, Hs> where
H: 'a,
Hs: Clone + RewriteSequence<Rewritten = H>,