Enum nom::ProducerState [] [src]

pub enum ProducerState<O> {
    Eof(O),
    Continue,
    Data(O),
    ProducerError(u32),
}

Holds the data producer's current state

  • Eof indicates all data has been parsed, and contains the parser's result

  • Continue indicates that more data is needed and should be available, but not right now. Parsing should resume at some point.

  • Data contains already parsed data

  • ProducerError indicates something went wrong

Variants

Eof(O)ContinueData(O)ProducerError(u32)

Trait Implementations

impl<O: Eq> Eq for ProducerState<O>
[src]

impl<O: PartialEq> PartialEq for ProducerState<O>
[src]

fn eq(&self, __arg_0: &ProducerState<O>) -> bool

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

fn ne(&self, __arg_0: &ProducerState<O>) -> bool

This method tests for !=.

impl<O: Debug> Debug for ProducerState<O>
[src]

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

Formats the value using the given formatter.