pub struct LexerError {
pub kind: LexerErrorKind,
pub message: String,
pub span: Span,
}Expand description
A recoverable error found while lexing.
Fields§
§kind: LexerErrorKindError category.
message: StringHuman-readable description.
span: SpanSource range of the error.
Trait Implementations§
Source§impl Clone for LexerError
impl Clone for LexerError
Source§impl Debug for LexerError
impl Debug for LexerError
Source§impl PartialEq for LexerError
impl PartialEq for LexerError
impl StructuralPartialEq for LexerError
Auto Trait Implementations§
impl Freeze for LexerError
impl RefUnwindSafe for LexerError
impl Send for LexerError
impl Sync for LexerError
impl Unpin for LexerError
impl UnsafeUnpin for LexerError
impl UnwindSafe for LexerError
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