Struct parsimonious::impls::OrElseParser [] [src]

pub struct OrElseParser<P, Q>(_, _);

Methods

impl<P, Q> OrElseParser<P, Q>
[src]

Trait Implementations

impl<P: Copy, Q: Copy> Copy for OrElseParser<P, Q>
[src]

impl<P: Clone, Q: Clone> Clone for OrElseParser<P, Q>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<P: Debug, Q: Debug> Debug for OrElseParser<P, Q>
[src]

Formats the value using the given formatter.

impl<P, Q> Parser for OrElseParser<P, Q>
[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, Q, S> Uncommitted<S> for OrElseParser<P, Q> where
    P: Uncommitted<S>,
    Q: Uncommitted<S, Output = P::Output>, 
[src]

The type of the data being produced by the parser.

The type of the parser state.

Provides data to the parser. Read more