pub enum LexerErrorType<'s> {
EndOfInputInsideString,
EndOfLineInsideString,
InvalidInput,
UnmatchedOpener {
open: TokenType<'s>,
close: TokenType<'s>,
},
}Expand description
Type of LexerError.
Implements std::fmt::Display to write a useful error message.
Variants§
EndOfInputInsideString
EndOfLineInsideString
The line ended in the middle of a non-verbatim string.
§Example
"this text spans multiple
lines" ^ errorInvalidInput
UnmatchedOpener
Implementations§
Source§impl<'a> LexerErrorType<'a>
impl<'a> LexerErrorType<'a>
pub fn inline_display(self) -> impl Display + 'a
Trait Implementations§
Source§impl<'s> Clone for LexerErrorType<'s>
impl<'s> Clone for LexerErrorType<'s>
Source§fn clone(&self) -> LexerErrorType<'s>
fn clone(&self) -> LexerErrorType<'s>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'s> Debug for LexerErrorType<'s>
impl<'s> Debug for LexerErrorType<'s>
Source§impl Display for LexerErrorType<'_>
impl Display for LexerErrorType<'_>
impl<'s> Copy for LexerErrorType<'s>
Auto Trait Implementations§
impl<'s> Freeze for LexerErrorType<'s>
impl<'s> RefUnwindSafe for LexerErrorType<'s>
impl<'s> Send for LexerErrorType<'s>
impl<'s> Sync for LexerErrorType<'s>
impl<'s> Unpin for LexerErrorType<'s>
impl<'s> UnwindSafe for LexerErrorType<'s>
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