Enum chomp::buffer::StreamError [] [src]

pub enum StreamError<'a, I, E> where I: 'a {
    ParseError(&'a [I], E),
    Incomplete(usize),
    IoError(Error),
    EndOfInput,
    Retry,
}

Error type for parsing using the Stream trait.

Variants

ParseError(&'a [I], E)

An error occurred in the parser, the given slice indicates the part which failed.

Incomplete(usize)

Parser failed to complete with the available data.

IoError(Error)

An IO-error occurred while attempting to fill the buffer.

EndOfInput

The last parser completed successfully and there is no more input to parse.

Retry

The last parser failed with an incomplete state, fill the buffer and try again.

Filling the buffer is automatic by default.

Trait Implementations

impl<'a, I: Debug, E: Debug> Debug for StreamError<'a, I, E> where I: 'a
[src]

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

Formats the value using the given formatter.

impl<'a, I, E> PartialEq for StreamError<'a, I, E> where E: PartialEq, I: PartialEq
[src]

fn eq(&self, other: &StreamError<'a, I, E>) -> 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 !=.