pub enum ErrorKind {
Assert,
Token,
Tag,
Alt,
Many,
Eof,
Slice,
Complete,
Not,
Verify,
Fail,
}
Expand description
Provide some minor debug context for errors
Variants§
Implementations§
Trait Implementations§
source§impl<I, C> AddContext<I, C> for ErrorKind
impl<I, C> AddContext<I, C> for ErrorKind
source§fn add_context(self, _input: &I, _ctx: C) -> Self
fn add_context(self, _input: &I, _ctx: C) -> Self
Append to an existing error custom data Read more
source§impl Display for ErrorKind
impl Display for ErrorKind
The Display implementation allows the std::error::Error
implementation
source§impl Error for ErrorKind
impl Error for ErrorKind
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<I, E> FromExternalError<I, E> for ErrorKind
impl<I, E> FromExternalError<I, E> for ErrorKind
source§fn from_external_error(_input: &I, kind: ErrorKind, _e: E) -> Self
fn from_external_error(_input: &I, kind: ErrorKind, _e: E) -> Self
Create a new error from an input position and an external error