Skip to main content

Reporter

Trait Reporter 

Source
pub trait Reporter {
    // Required methods
    fn report(&mut self, diagnostic: &Diagnostic, source: &str, filename: &str);
    fn has_errors(&self) -> bool;
}
Expand description

Trait for sinks that receive and display diagnostics.

Required Methods§

Source

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

Returns true if at least one error has been reported.

Implementors§