Enum parser_combinators::primitives::Error [] [src]

pub enum Error<T> {
    Unexpected(T),
    Expected(Info<T>),
    Message(Info<T>),
    Other(Box<StdError + Send>),
}

Enum used to store information about an error that has occured

Variants

Unexpected(T)

Error indicating an unexpected token has been encountered in the stream

Expected(Info<T>)

Error indicating that the parser expected something else

Message(Info<T>)

Generic message

Other(Box<StdError + Send>)

Variant for containing other types of errors

Methods

impl<T> Error<T>
[src]

fn end_of_input() -> Error<T>

Trait Implementations

impl<T: Debug> Debug for Error<T>
[src]

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

Formats the value using the given formatter.

impl<T: PartialEq> PartialEq for Error<T>
[src]

fn eq(&self, other: &Error<T>) -> 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 !=.

impl<E, T> From<E> for Error<T> where E: StdError + 'static + Send
[src]

fn from(e: E) -> Error<T>

Performs the conversion.

impl<T: Display> Display for Error<T>
[src]

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

Formats the value using the given formatter.