pub struct ConsoleReporter { /* private fields */ }Expand description
Writes diagnostics to stderr using codespan-reporting.
Implementations§
Source§impl ConsoleReporter
impl ConsoleReporter
Sourcepub fn new(color: ColorChoice) -> Self
pub fn new(color: ColorChoice) -> Self
Create a reporter with explicit color control.
Trait Implementations§
Source§impl Reporter for ConsoleReporter
impl Reporter for ConsoleReporter
Source§fn report(&mut self, diagnostic: &Diagnostic, source: &str, filename: &str)
fn report(&mut self, diagnostic: &Diagnostic, source: &str, filename: &str)
Emit a single diagnostic against the provided source text.
Source§fn has_errors(&self) -> bool
fn has_errors(&self) -> bool
Returns
true if at least one error has been reported.Auto Trait Implementations§
impl Freeze for ConsoleReporter
impl RefUnwindSafe for ConsoleReporter
impl Send for ConsoleReporter
impl Sync for ConsoleReporter
impl Unpin for ConsoleReporter
impl UnsafeUnpin for ConsoleReporter
impl UnwindSafe for ConsoleReporter
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