Struct rusty_peg::util::Repeat [] [src]

pub struct Repeat<P, S> {
    pub parser: P,
    pub separator: S,
    pub min: usize,
}

Fields

parser: P separator: S min: usize

Trait Implementations

impl<P: Debug, S: Debug> Debug for Repeat<P, S>
[src]

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

Formats the value using the given formatter.

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

type Output = Vec<P::Output>

fn pretty_print(&self) -> String

fn parse(&self, grammar: &mut G, start: Input<'input>) -> ParseResult<'input, Vec<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>