Enum ketos::parser::ParseErrorKind
[−]
[src]
pub enum ParseErrorKind { CannotDocumentItem, DocCommentEof, 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
CannotDocumentItem
Doc comment followed by incompatible token
DocCommentEof
Doc comment at end-of-file
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]
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