Enum parsell::impls::OrElseState [] [src]

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

Variants

Lhs(P)Rhs(Q)

Trait Implementations

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

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

impl<P, Q, Ch, Str, Output> Stateful<Ch, Str, Output> for OrElseState<P, Q> where P: Stateful<Ch, Str, Output>, Q: Stateful<Ch, Str, Output>
[src]

fn more(self, string: &mut Str) -> ParseResult<Self, Output>

Provides data to the parser. Read more

fn done(self) -> Output

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

fn last(self, string: &mut Str) -> Output where Self: Sized

Provides the last data to the parser. Read more

impl<P, Q, Ch, Str> HasOutput<Ch, Str> for OrElseState<P, Q> where P: HasOutput<Ch, Str>
[src]

type Output = P::Output

The type of the data being produced by the parser.