Struct parsimonious::OrEmitParser [] [src]

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

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]

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> ParserOf<S> for OrEmitParser<P, F> where P: Clone + GuardedParserOf<S>, F: Copy + Fn<(), Output=P::Output>
[src]

type Output = P::Output

The type of the data being produced by the parser.

type State = OrEmitStatefulParser<P, F, P::State>

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>