Enum parsell::ParseResult [] [src]

pub enum ParseResult<State, Output> {
    Done(Output),
    Continue(State),
}

The result of parsing

Variants

Done(Output)

The parse is finished.

Continue(State)

The parse can continue.

Methods

impl<State, Output> ParseResult<State, Output>
[src]

fn unDone(self) -> Output

fn unContinue(self) -> State

Trait Implementations

impl<State: Clone, Output: Clone> Clone for ParseResult<State, Output>
[src]

fn clone(&self) -> ParseResult<State, Output>

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<State: Copy, Output: Copy> Copy for ParseResult<State, Output>
[src]

impl<P, S> Debug for ParseResult<P, S> where S: Debug
[src]

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

Formats the value using the given formatter.

impl<P, S> PartialEq for ParseResult<P, S> where S: PartialEq
[src]

fn eq(&self, other: &ParseResult<P, S>) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

fn ne(&self, other: &Rhs) -> bool
1.0.0

This method tests for !=.