Struct parsell::impls::AndThen [] [src]

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

Methods

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

Trait Implementations

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

impl<P: Clone, Q: Clone> Clone for AndThen<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 AndThen<P, Q>
[src]

Formats the value using the given formatter.

impl<P, Q> Parser for AndThen<P, Q>
[src]

Choice between parsers

Sequencing with a committed parser

Sequencing with a committed parser (bubble any errors from this parser).

Sequencing with a committed parser (bubble any errors from that parser).

Sequencing with a committed parser (bubble any errors from either parser).

Iterate one or more times (returns an uncommitted parser).

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

Apply a function to the result

Apply a 2-arguent function to the result

Apply a 3-arguent function to the result

Apply a 4-arguent function to the result

Apply a 5-arguent function to the result

Apply a 6-arguent function to the result

Apply a function to the result (bubble any errors).

Apply a 2-argument function to the result (bubble any errors).

Apply a 3-argument function to the result (bubble any errors).

Apply a 4-argument function to the result (bubble any errors).

Apply a 5-argument function to the result (bubble any errors).

Apply a 6-argument function to the result (bubble any errors).

Apply a by-reference function to the result

Apply a variant function to the result

Sequencing, discard the output of the first parse

Sequencing, discard the output of the second parse

Sequencing, discard the output of the first parse, bubble errors from the first parser

Sequencing, discard the output of the second parse, bubble errors from the second parser

Sequencing, discard the output of the first parse, bubble errors from either parser

Sequencing, discard the output of the second parse, bubble errors from either parser

Optional parse

Optional parse

Discard the output

Discard the output, bubbling errors

Box up this parser

Set the state of this parser

A parser which produces its input. Read more

impl<P, Q, Ch, Str, POutput, PStaticOutput, QOutput> Committed<Ch, Str, (POutput, QOutput)> for AndThen<P, Q> where
    P: Committed<Ch, Str, POutput>,
    Q: 'static + Copy + Committed<Ch, Str, QOutput>,
    POutput: ToStatic<Static = PStaticOutput> + Downcast<PStaticOutput>, 
[src]

Parse an EOF.

impl<P, Q, Ch, Str, POutput, PStaticOutput, QOutput> Uncommitted<Ch, Str, (POutput, QOutput)> for AndThen<P, Q> where
    P: Uncommitted<Ch, Str, POutput>,
    Q: 'static + Copy + Committed<Ch, Str, QOutput>,
    POutput: ToStatic<Static = PStaticOutput> + Downcast<PStaticOutput>, 
[src]

Parse a string of data.

impl<P, Q, Ch, Str> HasOutput<Ch, Str> for AndThen<P, Q> where
    P: HasOutput<Ch, Str>,
    Q: HasOutput<Ch, Str>, 
[src]

The type of the data being produced by the parser.