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
CannotDocumentItemDoc comment followed by incompatible token
DocCommentEofDoc comment at end-of-file
InvalidLiteralError in parsing literal
InvalidTokenError in parsing token
InvalidByte(char)Invalid character in byte or byte string literal
InvalidByteEscape(char)Invalid escape sequence in byte or byte string literal
InvalidChar(char)Invalid character in input
InvalidNumericEscape(char)Invalid character in numeric escape sequence \xNN or \u{NNNN}
LiteralParseErrorError parsing literal string into value
MissingCloseParenMissing closing parenthesis
UnbalancedCommaMore commas than backquotes
UnexpectedEofUnexpected end-of-file
UnexpectedTokenUnexpected token
Fields of UnexpectedToken
expected: &'static str | Token or category of token expected |
found: &'static str | Token found |
UnknownCharEscape(char)Unrecognized character escape
UnmatchedParenUnmatched )
UnterminatedCharUnterminated character constant
UnterminatedCommentUnterminated block comment
UnterminatedStringUnterminated string constant
Trait Implementations
impl Copy for ParseErrorKind[src]
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 Debug for ParseErrorKind[src]
impl Eq for ParseErrorKind[src]
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 !=.