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

Error indicating an unexpected token has been encountered in the stream

Error indicating that the parser expected something else

Generic message

Variant for containing other types of errors

Methods

impl<T> Error<T>
[src]

Trait Implementations

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

Formats the value using the given formatter.

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

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

This method tests for !=.

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

Performs the conversion.

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

Formats the value using the given formatter. Read more