Struct parsimonious::AndThenParser [] [src]

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

Trait Implementations

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

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

Formats the value using the given formatter.

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

fn clone(&self) -> AndThenParser<P, Q>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

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

impl<P, Q, S> ParserOf<S> for AndThenParser<P, Q> where P: ParserOf<S>, Q: ParserOf<S>
[src]

type Output = (P::Output, Q::Output)

The type of the data being produced by the parser.

type State = AndThenStatefulParser<P::State, Q::State, P::Output>

The type of the parser state.

fn init(&self) -> Self::State

Create a stateful parser by initializing a stateless parser.

fn boxable(self) -> BoxableParser<Self::State> where Self: Sized

Make this parser boxable.

fn and_then<P>(self, other: P) -> AndThenParser<Self, P> where Self: Sized, P: ParserOf<S>

impl<P, Q, S> GuardedParserOf<S> for AndThenParser<P, Q> where P: GuardedParserOf<S>, Q: ParserOf<S>
[src]

type Output = (P::Output, Q::Output)

The type of the data being produced by the parser.

type State = AndThenStatefulParser<P::State, Q::State, P::Output>

The type of the parser state.

fn parse(&self, value: S) -> GuardedParseResult<Self::State, S>

Provides data to the parser. Read more

fn or_else<P>(self, other: P) -> OrElseGuardedParser<Self, P> where Self: Sized, P: GuardedParserOf<S>

Choice between guarded parsers (returns a guarded parser).

fn or_emit<F>(self, factory: F) -> OrEmitParser<Self, F> where Self: Sized

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

fn and_then<P>(self, other: P) -> AndThenParser<Self, P> where Self: Sized, P: ParserOf<S>

Sequencing with a parser (returns a guarded parser).

fn plus<F>(self, factory: F) -> PlusParser<Self, F> where Self: Sized

Iterate one or more times (returns a guarded parser).

fn star<F>(self, factory: F) -> StarParser<Self, F> where Self: Sized

Iterate zero or more times (returns a parser).

fn map<F>(self, f: F) -> MapGuardedParser<Self, F> where Self: Sized

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

fn buffer(self) -> BufferedGuardedParser<Self> where Self: Sized

Replace the result with the input. Read more