Enum parsell::impls::AndThenState [] [src]

pub enum AndThenState<PState, Q, PStaticOutput, QState> {
    InLhs(PState, Q),
    InBetween(PStaticOutput, Q),
    InRhs(PStaticOutput, QState),
}

Variants

InLhs(PState, Q)InBetween(PStaticOutput, Q)InRhs(PStaticOutput, QState)

Trait Implementations

impl<PState: Debug, Q: Debug, PStaticOutput: Debug, QState: Debug> Debug for AndThenState<PState, Q, PStaticOutput, QState>
[src]

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

Formats the value using the given formatter.

impl<PState: Clone, Q: Clone, PStaticOutput: Clone, QState: Clone> Clone for AndThenState<PState, Q, PStaticOutput, QState>
[src]

fn clone(&self) -> AndThenState<PState, Q, PStaticOutput, QState>

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<PState: Copy, Q: Copy, PStaticOutput: Copy, QState: Copy> Copy for AndThenState<PState, Q, PStaticOutput, QState>
[src]

impl<PState, Q, PStaticOutput, QState, Ch, Str, POutput, QOutput> Stateful<Ch, Str, (POutput, QOutput)> for AndThenState<PState, Q, PStaticOutput, QState> where PState: Stateful<Ch, Str, POutput>, Q: Committed<Ch, Str, QOutput, State=QState>, QState: Stateful<Ch, Str, QOutput>, POutput: Downcast<PStaticOutput>, PStaticOutput: 'static + Upcast<POutput>
[src]

fn done(self) -> (POutput, QOutput)

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

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

Provides data to the parser. Read more

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

Provides the last data to the parser. Read more

impl<PState, Q, PStaticOutput, QState, Ch, Str> HasOutput<Ch, Str> for AndThenState<PState, Q, PStaticOutput, QState> where PState: HasOutput<Ch, Str>, Q: HasOutput<Ch, Str>
[src]

type Output = (PState::Output, Q::Output)

The type of the data being produced by the parser.