pub struct NullEmitter { /* private fields */ }Expand description
NullEmitter is used to silence diagnostics entirely, without changing anything in the diagnostic infrastructure.
When used, the rendered buffer is thrown away.
Implementations§
Source§impl NullEmitter
impl NullEmitter
pub fn new(color: ColorChoice) -> Self
Trait Implementations§
Source§impl Clone for NullEmitter
impl Clone for NullEmitter
Source§fn clone(&self) -> NullEmitter
fn clone(&self) -> NullEmitter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for NullEmitter
impl Default for NullEmitter
Source§fn default() -> NullEmitter
fn default() -> NullEmitter
Returns the “default value” for a type. Read more
Source§impl Emitter for NullEmitter
impl Emitter for NullEmitter
impl Copy for NullEmitter
Auto Trait Implementations§
impl Freeze for NullEmitter
impl RefUnwindSafe for NullEmitter
impl Send for NullEmitter
impl Sync for NullEmitter
impl Unpin for NullEmitter
impl UnwindSafe for NullEmitter
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