pub struct PythonDiagnosticParser { /* private fields */ }Expand description
Stateful extractor for standard Python traceback and syntax-error output.
Python reports source locations on a File "...", line N frame before the
terminal exception. Keeping only the latest frame is bounded and matches
traceback semantics, where the innermost frame is printed last.
Implementations§
Source§impl PythonDiagnosticParser
impl PythonDiagnosticParser
Sourcepub fn observe_line(&mut self, line: &str) -> Option<Diagnostic>
pub fn observe_line(&mut self, line: &str) -> Option<Diagnostic>
Observes one normalized output line and returns a diagnostic when the line terminates a Python exception block.
Trait Implementations§
Source§impl Debug for PythonDiagnosticParser
impl Debug for PythonDiagnosticParser
Auto Trait Implementations§
impl Freeze for PythonDiagnosticParser
impl RefUnwindSafe for PythonDiagnosticParser
impl Send for PythonDiagnosticParser
impl Sync for PythonDiagnosticParser
impl Unpin for PythonDiagnosticParser
impl UnsafeUnpin for PythonDiagnosticParser
impl UnwindSafe for PythonDiagnosticParser
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