Enum parsimonious::OrElseStatefulParser [] [src]

pub enum OrElseStatefulParser<P, Q> {
    Lhs(P),
    Rhs(Q),
}

Variants

Lhs(P)Rhs(Q)

Trait Implementations

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

fn clone(&self) -> OrElseStatefulParser<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 OrElseStatefulParser<P, Q>
[src]

impl<P, Q, S> StatefulParserOf<S> for OrElseStatefulParser<P, Q> where P: StatefulParserOf<S>, Q: StatefulParserOf<S, Output=P::Output>
[src]

type Output = P::Output

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

fn done(self) -> Self::Output