Enum parsimonious::OrEmitStatefulParser [] [src]

pub enum OrEmitStatefulParser<P, F, R> {
    Unresolved(P, F),
    Resolved(R),
}

Variants

Unresolved(P, F)Resolved(R)

Trait Implementations

impl<P: Debug, F: Debug, R: Debug> Debug for OrEmitStatefulParser<P, F, R>
[src]

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

Formats the value using the given formatter.

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

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

fn clone(&self) -> Self

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, F, S> StatefulParserOf<S> for OrEmitStatefulParser<P, F, P::State> where P: GuardedParserOf<S>, F: Fn<(), Output=P::Output>
[src]

type Output = P::Output

The type of the data being produced by the parser.

fn parse(self, value: S) -> ParseResult<Self, S>

Provides data to the parser. Read more

fn done(self) -> Self::Output

Tells the parser that it will not receive any more data. Read more