pub enum ParserErrorKind {
UnexpectedToken(TokenType),
ExpectedToken {
expected: String,
found: TokenType,
},
ExpectedVariableName,
ExpectedParameterName,
InvalidCallTarget,
ExpectedIdentifierAfterDot,
Lexer(LexerError),
}Variants§
UnexpectedToken(TokenType)
ExpectedToken
ExpectedVariableName
ExpectedParameterName
InvalidCallTarget
ExpectedIdentifierAfterDot
Lexer(LexerError)
Trait Implementations§
Source§impl Debug for ParserErrorKind
impl Debug for ParserErrorKind
Source§impl Display for ParserErrorKind
impl Display for ParserErrorKind
Source§impl Error for ParserErrorKind
impl Error for ParserErrorKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ParserErrorKind
impl RefUnwindSafe for ParserErrorKind
impl Send for ParserErrorKind
impl Sync for ParserErrorKind
impl Unpin for ParserErrorKind
impl UnsafeUnpin for ParserErrorKind
impl UnwindSafe for ParserErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more