pub struct LexError {
pub offset: usize,
pub kind: LexErrorKind,
}Expand description
A lexical error: what went wrong and exactly where.
C-GOOD-ERR: implements std::error::Error via thiserror, is
Send + Sync + 'static.
Fields§
§offset: usizeByte offset (absolute, from buffer start) where the error was detected.
kind: LexErrorKindWhat was wrong.
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()
Source§impl From<LexError> for ContentError
impl From<LexError> for ContentError
Source§impl From<LexError> for ParseErrorKind
impl From<LexError> for ParseErrorKind
Source§impl From<LexError> for ParseError
impl From<LexError> for ParseError
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 UnsafeUnpin 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