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>), }
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>)
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]
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 !=
.