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

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

Variants

Lhs
Rhs

Trait Implementations

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>

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

fn done(self) -> Output

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

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

type Output = P::Output

Derived Implementations

impl<P: Debug, Q: Debug> Debug for OrElseState<P, Q>

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

impl<P: Clone, Q: Clone> Clone for OrElseState<P, Q>

fn clone(&self) -> OrElseState<P, Q>

fn clone_from(&mut self, source: &Self)

impl<P: Copy, Q: Copy> Copy for OrElseState<P, Q>