pub struct NullSink;Expand description
A no-op sink used as default when the caller does not provide a collector.
Trait Implementations§
Source§impl DiagnosticSink for NullSink
impl DiagnosticSink for NullSink
Source§fn emit(&mut self, _: Diagnostic)
fn emit(&mut self, _: Diagnostic)
Emit a diagnostic message.
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