Enum parsimonious::impls::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]
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
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
fn boxable(self) -> BoxableParser<Self> where Self: Sized
Make this parser boxable.