pub struct NullSink;Expand description
Discards every diagnostic. Default for tests and pure-codec callers that don’t want to track parser observations.
Trait Implementations§
Source§impl DiagnosticSink for NullSink
impl DiagnosticSink for NullSink
Source§fn record(&mut self, _: Diagnostic)
fn record(&mut self, _: Diagnostic)
Record a diagnostic.
impl Copy for NullSink
Auto Trait Implementations§
impl Freeze for NullSink
impl RefUnwindSafe for NullSink
impl Send for NullSink
impl Sync for NullSink
impl Unpin for NullSink
impl UnwindSafe for NullSink
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