Trait syntax::errors::emitter::Emitter [] [src]

pub trait Emitter {
    fn emit(&mut self, span: &MultiSpan, msg: &str, code: Option<&str>, lvl: Level);
    fn emit_struct(&mut self, db: &DiagnosticBuilder);
}
Unstable (rustc_private)

Emitter trait for emitting errors. Do not implement this directly: implement CoreEmitter instead.

Required Methods

fn emit(&mut self, span: &MultiSpan, msg: &str, code: Option<&str>, lvl: Level)

Unstable (rustc_private)

Emit a standalone diagnostic message.

fn emit_struct(&mut self, db: &DiagnosticBuilder)

Unstable (rustc_private)

Emit a structured diagnostic.

Implementors