pub struct NullDiagnostics;Expand description
A no-op sink, useful in tests and as a default when callers don’t care about per-record warnings.
§Examples
use face_core::NullDiagnostics;
// Hand to any function expecting `&mut dyn Diagnostics` (or a
// generic `D: Diagnostics`); the sink discards every event.
let mut diag = NullDiagnostics;
let _: &mut dyn face_core::Diagnostics = &mut diag;Trait Implementations§
Source§impl Debug for NullDiagnostics
impl Debug for NullDiagnostics
Source§impl Default for NullDiagnostics
impl Default for NullDiagnostics
Source§fn default() -> NullDiagnostics
fn default() -> NullDiagnostics
Returns the “default value” for a type. Read more
Source§impl Diagnostics for NullDiagnostics
impl Diagnostics for NullDiagnostics
Source§fn record_skip(&mut self, _: SkipReport)
fn record_skip(&mut self, _: SkipReport)
Record one
SkipReport. Implementations decide whether to
print, count, accumulate, or drop it.Auto Trait Implementations§
impl Freeze for NullDiagnostics
impl RefUnwindSafe for NullDiagnostics
impl Send for NullDiagnostics
impl Sync for NullDiagnostics
impl Unpin for NullDiagnostics
impl UnsafeUnpin for NullDiagnostics
impl UnwindSafe for NullDiagnostics
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