Struct peruse::parsers::RepSepParser [] [src]

pub struct RepSepParser<A, B> {
    pub rep: A,
    pub sep: B,
    pub min_reps: usize,
}

A Parser that will repeatedly parse rep and sep in sequence until sep returns an error. The accumulated rep results are returned. If rep returns an error at any time, the error is escelated.

Fields

Trait Implementations

impl<I: ?Sized, A: Parser<I = I>, B: Parser<I = I>> Parser for RepSepParser<A, B>
[src]

impl<I: ?Sized, A: ParserCombinator<I = I>, B: ParserCombinator<I = I>> ParserCombinator for RepSepParser<A, B>
[src]

Chain this parser with another parser, creating new parser that returns a tuple of their results Read more

Chain this parser with another parser, but toss the value from this parser

Chain this parser with another parser, but toss the value from the other parser

Create a new parser that will repeat this parser until it returns an error

Map the value of this parser

Create a disjunction with another parser. If this parser produces an error, the other parser will be used

impl<I: ?Sized, A: ParserCombinator<I = I>, B: ParserCombinator<I = I>> Clone for RepSepParser<A, B>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more