Enum combine::primitives::Error [] [src]

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

Enum used to store information about an error that has occured

Variants

Unexpected(Info<T, R>)

Error indicating an unexpected token has been encountered in the stream

Expected(Info<T, R>)

Error indicating that the parser expected something else

Message(Info<T, R>)

Generic message

Other(Box<StdError + Send + Sync>)

Variant for containing other types of errors

Methods

impl<T, R> Error<T, R>
[src]

fn end_of_input() -> Error<T, R>

Trait Implementations

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

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

Formats the value using the given formatter.

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

fn eq(&self, other: &Error<T, R>) -> 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, R> From<E> for Error<T, R> where E: StdError + 'static + Send + Sync
[src]

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

Performs the conversion.

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

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

Formats the value using the given formatter.