Enum parse_cfg::ErrorKind

source ·
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 instead

IsNotStr

👎Deprecated since 4.0.0: Please use IsNot instead

IsAStr

👎Deprecated since 4.0.0: Please use IsA instead

TakeWhile1Str

👎Deprecated since 4.0.0: Please use TakeWhile1 instead

NonEmpty

ManyMN

TakeUntilAndConsumeStr

👎Deprecated since 4.0.0: Please use TakeUntilAndConsume instead

TakeUntilStr

👎Deprecated since 4.0.0: Please use TakeUntil instead

Not

Permutation

Verify

TakeTill1

TakeUntilAndConsume1

TakeWhileMN

ParseTo

TooLarge

Many0Count

Many1Count

Implementations

Convert Err into an ErrorKind.

This allows application code to use ErrorKind and stay independent from the verbose-errors features activation.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.