[][src]Trait cfg::rule::GrammarRule

pub trait GrammarRule {
    type History;
    fn lhs(&self) -> Symbol;
fn rhs(&self) -> &[Symbol];
fn history(&self) -> &Self::History; }

Trait for rules of a context-free grammar.

Associated Types

type History

The type of history carried with the rule.

Loading content...

Required methods

fn lhs(&self) -> Symbol

Returns the rule's left-hand side.

fn rhs(&self) -> &[Symbol]

Returns the rule's right-hand side.

fn history(&self) -> &Self::History

Returns a reference to the history carried with the rule.

Loading content...

Implementations on Foreign Types

impl<'a, R> GrammarRule for &'a R where
    R: GrammarRule
[src]

type History = R::History

Loading content...

Implementors

impl<'a, H> GrammarRule for RuleRef<'a, H>[src]

type History = H

impl<H> GrammarRule for BinarizedRule<H>[src]

type History = H

impl<H> GrammarRule for Rule<H>[src]

type History = H

Loading content...