Struct syntex_syntax::diagnostic::EmitterWriter [] [src]

pub struct EmitterWriter {
    // some fields omitted
}

Methods

impl EmitterWriter

fn stderr(color_config: ColorConfig, registry: Option<Registry>) -> EmitterWriter

fn new(dst: Box<Write + Send>, registry: Option<Registry>) -> EmitterWriter

Trait Implementations

impl Emitter for EmitterWriter

fn emit(&mut self, cmsp: Option<(&CodeMap, Span)>, msg: &str, code: Option<&str>, lvl: Level)

fn custom_emit(&mut self, cm: &CodeMap, sp: RenderSpan, msg: &str, lvl: Level)