Struct parsimonious::impls::OrEmitParser [] [src]

pub struct OrEmitParser<P, F>(_, _);

Methods

impl<P, F> OrEmitParser<P, F>
[src]

Trait Implementations

impl<P, F> Copy for OrEmitParser<P, F> where
    P: Copy,
    F: Copy
[src]

impl<P, F> Clone for OrEmitParser<P, F> where
    P: Clone,
    F: Copy
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P, F> Parser for OrEmitParser<P, F>
[src]

Choice between parsers (returns a parser).

Gives a parser a default value (returns a committed parser).

Sequencing with a committed parser (returns a committed parser).

Sequencing with a committed parser (returns a committed parser which produces an error when this parser returns an error).

Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).

Sequencing with a committed parser (returns a committed parser which produces an error when the other parser returns an error).

Iterate one or more times (returns a parser).

Iterate zero or more times (returns a committed parser).

Apply a function to the result (returns a committed parser).

Apply a 2-arguent function to the result (returns a committed parser).

Apply a 3-arguent function to the result (returns a committed parser).

Apply a 4-arguent function to the result (returns a committed parser).

Apply a 5-arguent function to the result (returns a committed parser).

Apply a function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 2-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 3-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 4-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Apply a 5-argument function to the result (returns a committed parser which produces an error when this parser returns an error).

Take the results of iterating this parser, and feed it into another parser.

A parser which produces its input. Read more

impl<P, F, S> Committed<S> for OrEmitParser<P, F> where
    P: Clone + Uncommitted<S>,
    F: Copy + Factory<Output = P::Output>, 
[src]

The type of the data being produced by the parser.

The type of the parser state.

Create a stateful parser by initializing a stateless parser.

Build an iterator from a parser and some data.