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

pub enum ParseErrorKind {
    InvalidLiteral,
    InvalidToken,
    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

InvalidLiteral

Error in parsing literal

InvalidToken

Error in parsing token

InvalidChar(char)

Invalid character in input

InvalidNumericEscape(char)

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

LiteralParseError

Error parsing literal string into value

MissingCloseParen

Missing closing parenthesis

UnbalancedComma

More commas than backquotes

UnexpectedEof

Unexpected end-of-file

UnexpectedToken

Unexpected token

Fields

expected: &'static str

Token or category of token expected

found: &'static str

Token found

UnknownCharEscape(char)

Unrecognized character escape

UnmatchedParen

Unmatched )

UnterminatedChar

Unterminated character constant

UnterminatedComment

Unterminated block comment

UnterminatedString

Unterminated string constant

Trait Implementations

impl PartialEq for ParseErrorKind
[src]

fn eq(&self, __arg_0: &ParseErrorKind) -> bool

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

fn ne(&self, __arg_0: &ParseErrorKind) -> bool

This method tests for !=.

impl Eq for ParseErrorKind
[src]

impl Debug for ParseErrorKind
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for ParseErrorKind
[src]

fn clone(&self) -> ParseErrorKind

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for ParseErrorKind
[src]

impl Display for ParseErrorKind
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.