pub struct NoDiagnostics;Expand description
A sink that wants nothing: the core’s default.
Trait Implementations§
Source§impl Clone for NoDiagnostics
impl Clone for NoDiagnostics
Source§fn clone(&self) -> NoDiagnostics
fn clone(&self) -> NoDiagnostics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NoDiagnostics
Source§impl Debug for NoDiagnostics
impl Debug for NoDiagnostics
Source§impl Default for NoDiagnostics
impl Default for NoDiagnostics
Source§fn default() -> NoDiagnostics
fn default() -> NoDiagnostics
Returns the “default value” for a type. Read more
Source§impl DiagnosticSink for NoDiagnostics
impl DiagnosticSink for NoDiagnostics
Source§fn wants(&self, _: DiagnosticKind) -> bool
fn wants(&self, _: DiagnosticKind) -> bool
Whether the sink wants events of
kind. Asked before each event is built, so answering
false costs the core a branch and nothing more.Source§fn report(&self, _: &Diagnostic<'_>)
fn report(&self, _: &Diagnostic<'_>)
Auto Trait Implementations§
impl Freeze for NoDiagnostics
impl RefUnwindSafe for NoDiagnostics
impl Send for NoDiagnostics
impl Sync for NoDiagnostics
impl Unpin for NoDiagnostics
impl UnsafeUnpin for NoDiagnostics
impl UnwindSafe for NoDiagnostics
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