pub struct CodeSpanDiagnosticReporter { /* private fields */ }Expand description
A reporter that reports diagnostics using codespan_reporting.
Trait Implementations§
Source§impl Default for CodeSpanDiagnosticReporter
impl Default for CodeSpanDiagnosticReporter
Source§impl DiagnosticReporter for CodeSpanDiagnosticReporter
impl DiagnosticReporter for CodeSpanDiagnosticReporter
Source§fn report(&mut self, diagnostics: &[ResolvedDiagnostics])
fn report(&mut self, diagnostics: &[ResolvedDiagnostics])
reports the given diagnostic
Source§fn register(&mut self, path: String, src: String) -> usize
fn register(&mut self, path: String, src: String) -> usize
register the given path & src and returns an ID to indicate
a relationship the given src (diagnostics for this src need
to use this id)
fn buffer(&self) -> Option<String>
Auto Trait Implementations§
impl Freeze for CodeSpanDiagnosticReporter
impl RefUnwindSafe for CodeSpanDiagnosticReporter
impl Send for CodeSpanDiagnosticReporter
impl Sync for CodeSpanDiagnosticReporter
impl Unpin for CodeSpanDiagnosticReporter
impl UnsafeUnpin for CodeSpanDiagnosticReporter
impl UnwindSafe for CodeSpanDiagnosticReporter
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