Enum ketos::parser::ParseErrorKind [] [src]

pub enum ParseErrorKind {
    CannotDocumentItem,
    DocCommentEof,
    InvalidLiteral,
    InvalidToken,
    InvalidByte(char),
    InvalidByteEscape(char),
    InvalidChar(char),
    InvalidNumericEscape(char),
    LiteralParseError,
    MissingCloseParen,
    UnbalancedComma,
    UnexpectedEof,
    UnexpectedToken {
        expected: &'static str,
        found: &'static str,
    },
    UnknownCharEscape(char),
    UnmatchedParen,
    UnterminatedChar,
    UnterminatedComment,
    UnterminatedString,
}

Describes the kind of error encountered in parsing.

Variants

Doc comment followed by incompatible token

Doc comment at end-of-file

Error in parsing literal

Error in parsing token

Invalid character in byte or byte string literal

Invalid escape sequence in byte or byte string literal

Invalid character in input

Invalid character in numeric escape sequence \xNN or \u{NNNN}

Error parsing literal string into value

Missing closing parenthesis

More commas than backquotes

Unexpected end-of-file

Unexpected token

Fields of UnexpectedToken

Token or category of token expected

Token found

Unrecognized character escape

Unmatched )

Unterminated character constant

Unterminated block comment

Unterminated string constant

Trait Implementations

impl Copy for ParseErrorKind
[src]

impl Clone for ParseErrorKind
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for ParseErrorKind
[src]

Formats the value using the given formatter.

impl Eq for ParseErrorKind
[src]

impl PartialEq for ParseErrorKind
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for ParseErrorKind
[src]

Formats the value using the given formatter. Read more