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
CannotDocumentItem
Doc comment followed by incompatible token
DocCommentEof
Doc comment at end-of-file
InvalidLiteral
Error in parsing literal
InvalidToken
Error 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}
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 of UnexpectedToken
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 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 !=
.