pub struct LexError {
pub kind: LexErrorKind,
pub loc: SourceLoc,
}Expand description
Lexer error with location
Fields§
§kind: LexErrorKind§loc: SourceLocTrait Implementations§
Source§impl From<LexError> for ParseError
impl From<LexError> for ParseError
Source§fn from(e: LexError) -> ParseError
fn from(e: LexError) -> ParseError
Converts to this type from the input type.
impl Copy for LexError
impl Eq for LexError
impl StructuralPartialEq for LexError
Auto Trait Implementations§
impl Freeze for LexError
impl RefUnwindSafe for LexError
impl Send for LexError
impl Sync for LexError
impl Unpin for LexError
impl UnwindSafe for LexError
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