pub struct StandardStreamReporter { /* private fields */ }
Implementations§
Source§impl StandardStreamReporter
impl StandardStreamReporter
pub fn stderr(color_choice: ColorChoice) -> Self
pub fn stdout(color_choice: ColorChoice) -> Self
pub fn with_severity_filter(self, filter: SeverityFilter) -> Self
Trait Implementations§
Source§impl Debug for StandardStreamReporter
impl Debug for StandardStreamReporter
Source§impl Default for StandardStreamReporter
impl Default for StandardStreamReporter
Source§impl Reporter for StandardStreamReporter
impl Reporter for StandardStreamReporter
Source§fn emit(
&self,
diagnostic: &Diagnostic,
sources: &SourceFiles,
) -> Result<(), Error>
fn emit( &self, diagnostic: &Diagnostic, sources: &SourceFiles, ) -> Result<(), Error>
Emit a diagnostic, providing a mapping for source code.
fn counters(&self) -> ReportCounters
fn done(&self, module_name: Option<String>) -> Result<ReportCounters, Error>
fn severity_filter(&self) -> SeverityFilter
fn set_severity_filter(&mut self, filter: SeverityFilter)
fn emit_without_source(&self, diagnostic: &Diagnostic) -> Result<(), Error>
fn log(&self, diagnostic: &Diagnostic)
fn is_enabled(&self, level: Severity) -> bool
Auto Trait Implementations§
impl !Freeze for StandardStreamReporter
impl !RefUnwindSafe for StandardStreamReporter
impl Send for StandardStreamReporter
impl !Sync for StandardStreamReporter
impl Unpin for StandardStreamReporter
impl UnwindSafe for StandardStreamReporter
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