Struct rusty_peg::util::Or [] [src]

pub struct Or<NT1, P2> {
    pub a: NT1,
    pub b: P2,
}

Fields

a: NT1 b: P2

Trait Implementations

impl<NT1: Debug, P2: Debug> Debug for Or<NT1, P2>
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl<'input, NT1, P2, R, G> Symbol<'input, G> for Or<NT1, P2> where NT1: Symbol<'input, G, Output=R>, P2: Symbol<'input, G, Output=R>
[src]

type Output = R

fn pretty_print(&self) -> String

fn parse(&self, grammar: &mut G, start: Input<'input>) -> ParseResult<'input, R>

fn parse_complete(&self, grammar: &mut G, text: &'input str) -> Result<Self::Output, Error<'input>>

fn parse_prefix(&self, grammar: &mut G, text: &'input str) -> ParseResult<'input, Self::Output>