pub struct LexingError {
pub path: PathBuf,
pub message: String,
pub line: usize,
pub position: usize,
}Expand description
Lexer error payload. Converted into Diagnostic at the call site
(main.rs); never rendered directly. No Display impl by design — all
user-facing formatting lives in Diagnostic.
Fields§
§path: PathBuf§message: String§line: usize§position: usizeImplementations§
Trait Implementations§
Source§impl Debug for LexingError
impl Debug for LexingError
Source§impl Display for LexingError
impl Display for LexingError
Source§impl Error for LexingError
impl Error for LexingError
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()
Auto Trait Implementations§
impl Forget for LexingError
impl Freeze for LexingError
impl Move for LexingError
impl RefUnwindSafe for LexingError
impl Send for LexingError
impl Sync for LexingError
impl Unpin for LexingError
impl UnsafeUnpin for LexingError
impl UnwindSafe for LexingError
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