pub struct LexError {
pub line: usize,
pub col: usize,
pub msg: String,
pub kind: Option<ParseErrorKind>,
}Fields§
§line: usize§col: usize§msg: String§kind: Option<ParseErrorKind>Machine-readable kind when the lexer knows it (an unclosed
WITH_IO bracket is that command’s syntax error, never a bare
grammar failure); None means a plain syntax failure.
Trait Implementations§
impl Eq for LexError
Source§impl Error for LexError
impl Error for LexError
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 StructuralPartialEq for LexError
Auto Trait Implementations§
impl Forget for LexError
impl Freeze for LexError
impl Move for LexError
impl RefUnwindSafe for LexError
impl Send for LexErrorwhere
RawVecInner: Send,
impl Sync for LexErrorwhere
RawVecInner: Sync,
impl Unpin for LexError
impl UnsafeUnpin for LexError
impl UnwindSafe for LexErrorwhere
RawVecInner: UnwindSafe,
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