pub enum ParseErrorTypeId {
Show 17 variants QuotedParamNotFollowedByWhitespaceChar, NoMatchForOptionWithValue, QuotedOptionValueNotFollowedByWhitespaceChar, EscapeCharacterAtEndOfLine, EscapedCharacterInOptionValueCannotBeEscaped, EscapeCharacterAtEndOfOptionValue, ParamMissingClosingQuoteCharacter, EscapedCharacterInParamCannotBeEscaped, EscapeCharacterAtEndOfParam, OptionCodeMissingDoubleAnnouncer, OptionCodeCannotContainQuoteChar, OptionCodeCannotContainEscapeChar, OptionMissingValue, OptionValueCannotStartWithOptionAnnouncer, OptionValueMissingClosingQuoteCharacter, UnmatchedOption, UnmatchedParam,
}
Expand description

The types of errors which can returned by the Parser parse functions

Variants

QuotedParamNotFollowedByWhitespaceChar

A quoted parameter was not followed by a white space character. This can be caused by embedding a quote character within the quoted string.

NoMatchForOptionWithValue

An option argument requires a value but no matcher found which supports both the option code and allows the option to have a value.

QuotedOptionValueNotFollowedByWhitespaceChar

A quoted option value was not followed by a white space character. This can be caused by embedding a quote character within the quoted string.

EscapeCharacterAtEndOfLine

Escape character is at the end of line.

EscapedCharacterInOptionValueCannotBeEscaped

An escaped character in an option value cannot be escaped.

EscapeCharacterAtEndOfOptionValue

Escape character is at the end of an option value.

ParamMissingClosingQuoteCharacter

A quoted parameter argument is missing the closing quote character.

EscapedCharacterInParamCannotBeEscaped

An escaped character in a parameter cannot be escaped.

EscapeCharacterAtEndOfParam

Escape character is at the end of a parameter.

OptionCodeMissingDoubleAnnouncer

Option code with length longer than 1 requires a double announcer.

OptionCodeCannotContainQuoteChar

Option code cannot contain a quote character.

OptionCodeCannotContainEscapeChar

Option code cannot contain an escape character.

OptionMissingValue

Option requires a value but value is missing.

OptionValueCannotStartWithOptionAnnouncer

Option value cannot start with option announcer character.

OptionValueMissingClosingQuoteCharacter

A quoted option value is missing the closing quote character.

UnmatchedOption

No match found for option argument.

UnmatchedParam

No match found for parameter argument.

Implementations

Get the default (English) text which describes an error type.

Trait Implementations

Formats the value using the given formatter. Read more
Formats the value using the given formatter. 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.

Converts the given value to a String. 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.