pub struct LexError {
pub message: String,
pub pos: usize,
}Expand description
字句解析で検出した異常(回復して継続した箇所)。
【2026-07-28】従来この層は異常を一切報告しておらず、
0xZZ や壊れた数値は unwrap_or(0) で黙って 0 になり、
閉じ忘れの文字列・ブロックコメントはそこから先を丸ごと飲み込んだまま
正常終了したように見えていた。値が化けているのに誰も気づけない状態を
なくすため、回復はしつつ必ず記録する。
Fields§
§message: String§pos: usizeソース上の文字位置。
Trait Implementations§
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