Struct rusty_peg::util::Optional [] [src]

pub struct Optional<P> {
    // some fields omitted
}

Trait Implementations

impl<P: Debug> Debug for Optional<P>
[src]

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

Formats the value using the given formatter.

impl<'input, G, P> Symbol<'input, G> for Optional<P> where P: Symbol<'input, G>
[src]

type Output = Option<P::Output>

fn pretty_print(&self) -> String

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

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>