Struct cfg::rule::RuleRef [] [src]

pub struct RuleRef<'a, H: 'a> {
    pub lhs: Symbol,
    pub rhs: &'a [Symbol],
    pub history: &'a H,
}

References rule's components.

Fields

lhs

Left-hand side.

rhs

Right-hand side.

history

The rule's history.

Trait Implementations

impl<'a, H> Copy for RuleRef<'a, H>

impl<'a, H> Clone for RuleRef<'a, H>

fn clone(&self) -> Self

1.0.0fn clone_from(&mut self, source: &Self)

impl<'a, H> GrammarRule for RuleRef<'a, H>

type History = H

fn lhs(&self) -> Symbol

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

fn history(&self) -> &H