Struct syntax::diagnostic::SpanHandler[src]

pub struct SpanHandler {
    pub handler: Handler,
    pub cm: CodeMap,
}

Fields

handler
cm

Methods

impl SpanHandler

fn span_fatal(&self, sp: Span, msg: &str) -> !

fn span_err(&self, sp: Span, msg: &str)

fn span_warn(&self, sp: Span, msg: &str)

fn span_note(&self, sp: Span, msg: &str)

fn span_end_note(&self, sp: Span, msg: &str)

fn fileline_note(&self, sp: Span, msg: &str)

fn span_bug(&self, sp: Span, msg: &str) -> !

fn span_unimpl(&self, sp: Span, msg: &str) -> !

fn handler<'a>(&'a self) -> &'a Handler