pub enum ErrorKind<E = u32> {
Show 65 variants
Custom(E),
Tag,
MapRes,
MapOpt,
Alt,
IsNot,
IsA,
SeparatedList,
SeparatedNonEmptyList,
Many0,
Many1,
ManyTill,
Count,
TakeUntilAndConsume,
TakeUntil,
TakeUntilEitherAndConsume,
TakeUntilEither,
LengthValue,
TagClosure,
Alpha,
Digit,
HexDigit,
OctDigit,
AlphaNumeric,
Space,
MultiSpace,
LengthValueFn,
Eof,
ExprOpt,
ExprRes,
CondReduce,
Switch,
TagBits,
OneOf,
NoneOf,
Char,
CrLf,
RegexpMatch,
RegexpMatches,
RegexpFind,
RegexpCapture,
RegexpCaptures,
TakeWhile1,
Complete,
Fix,
Escaped,
EscapedTransform,
TagStr,
IsNotStr,
IsAStr,
TakeWhile1Str,
NonEmpty,
ManyMN,
TakeUntilAndConsumeStr,
TakeUntilStr,
Not,
Permutation,
Verify,
TakeTill1,
TakeUntilAndConsume1,
TakeWhileMN,
ParseTo,
TooLarge,
Many0Count,
Many1Count,
}
Expand description
indicates which parser returned an error
Variants
Custom(E)
Tag
MapRes
MapOpt
Alt
IsNot
IsA
SeparatedList
SeparatedNonEmptyList
Many0
Many1
ManyTill
Count
TakeUntilAndConsume
TakeUntil
TakeUntilEitherAndConsume
TakeUntilEither
LengthValue
TagClosure
Alpha
Digit
HexDigit
OctDigit
AlphaNumeric
Space
MultiSpace
LengthValueFn
Eof
ExprOpt
ExprRes
CondReduce
Switch
TagBits
OneOf
NoneOf
Char
CrLf
RegexpMatch
RegexpMatches
RegexpFind
RegexpCapture
RegexpCaptures
TakeWhile1
Complete
Fix
Escaped
EscapedTransform
TagStr
👎Deprecated since 4.0.0: Please use
Tag
insteadIsNotStr
👎Deprecated since 4.0.0: Please use
IsNot
insteadIsAStr
👎Deprecated since 4.0.0: Please use
IsA
insteadTakeWhile1Str
👎Deprecated since 4.0.0: Please use
TakeWhile1
insteadNonEmpty
ManyMN
TakeUntilAndConsumeStr
👎Deprecated since 4.0.0: Please use
TakeUntilAndConsume
insteadTakeUntilStr
👎Deprecated since 4.0.0: Please use
TakeUntil
insteadNot
Permutation
Verify
TakeTill1
TakeUntilAndConsume1
TakeWhileMN
ParseTo
TooLarge
Many0Count
Many1Count
Implementations
sourceimpl<E> ErrorKind<E>
impl<E> ErrorKind<E>
pub fn description(&self) -> &str
sourcepub fn into_error_kind(self) -> ErrorKind<E>
pub fn into_error_kind(self) -> ErrorKind<E>
Convert Err into an ErrorKind.
This allows application code to use ErrorKind and stay independent from the verbose-errors
features activation.
Trait Implementations
sourceimpl<E> PartialEq<ErrorKind<E>> for ErrorKind<E>where
E: PartialEq<E>,
impl<E> PartialEq<ErrorKind<E>> for ErrorKind<E>where
E: PartialEq<E>,
impl<E> Eq for ErrorKind<E>where
E: Eq,
impl<E> StructuralEq for ErrorKind<E>
impl<E> StructuralPartialEq for ErrorKind<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for ErrorKind<E>where
E: RefUnwindSafe,
impl<E> Send for ErrorKind<E>where
E: Send,
impl<E> Sync for ErrorKind<E>where
E: Sync,
impl<E> Unpin for ErrorKind<E>where
E: Unpin,
impl<E> UnwindSafe for ErrorKind<E>where
E: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more