pub enum TokError<'t> {
Show 19 variants
TabSpace,
TooDeep,
Dedent,
LineContinuation,
LineContinuationEof,
BadIdentifier(&'t str),
BadDecimal,
BadDecimalLeadingZeros,
BadHexadecimal,
BadOctal,
BadOctalDigit(char),
BadBinary,
BadBinaryDigit(char),
UnterminatedString,
UnterminatedTripleQuotedString,
UnmatchedClosingParen(char),
MismatchedClosingParen(char, char),
MismatchedClosingParenOnLine(char, char, usize),
BadCharacter(char),
}
Variants§
TabSpace
TooDeep
Dedent
LineContinuation
LineContinuationEof
BadIdentifier(&'t str)
BadDecimal
BadDecimalLeadingZeros
BadHexadecimal
BadOctal
BadOctalDigit(char)
BadBinary
BadBinaryDigit(char)
UnterminatedString
UnterminatedTripleQuotedString
UnmatchedClosingParen(char)
MismatchedClosingParen(char, char)
MismatchedClosingParenOnLine(char, char, usize)
BadCharacter(char)
Trait Implementations§
Source§impl<'t> Error for TokError<'t>
impl<'t> Error for TokError<'t>
1.30.0 · 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()
impl<'t> Eq for TokError<'t>
impl<'t> StructuralPartialEq for TokError<'t>
Auto Trait Implementations§
impl<'t> Freeze for TokError<'t>
impl<'t> RefUnwindSafe for TokError<'t>
impl<'t> Send for TokError<'t>
impl<'t> Sync for TokError<'t>
impl<'t> Unpin for TokError<'t>
impl<'t> UnwindSafe for TokError<'t>
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