pub struct NullDiagnosticReporter { /* private fields */ }Expand description
A reporter that consumes all diagnostics without reporting them.
Trait Implementations§
Source§impl Default for NullDiagnosticReporter
impl Default for NullDiagnosticReporter
Source§fn default() -> NullDiagnosticReporter
fn default() -> NullDiagnosticReporter
Returns the “default value” for a type. Read more
Source§impl DiagnosticReporter for NullDiagnosticReporter
impl DiagnosticReporter for NullDiagnosticReporter
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 NullDiagnosticReporter
impl RefUnwindSafe for NullDiagnosticReporter
impl Send for NullDiagnosticReporter
impl Sync for NullDiagnosticReporter
impl Unpin for NullDiagnosticReporter
impl UnsafeUnpin for NullDiagnosticReporter
impl UnwindSafe for NullDiagnosticReporter
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