Trait kailua_diag::report::Reporter [] [src]

pub trait Reporter: Report + Sized {
    fn fatal<Loc: Into<Span>, Msg: Localize, T>(
        &self,
        loc: Loc,
        msg: Msg
    ) -> ReportMore<T> { ... } fn error<Loc: Into<Span>, Msg: Localize>(
        &self,
        loc: Loc,
        msg: Msg
    ) -> ReportMore<()> { ... } fn warn<Loc: Into<Span>, Msg: Localize>(
        &self,
        loc: Loc,
        msg: Msg
    ) -> ReportMore<()> { ... } fn info<Loc: Into<Span>, Msg: Localize>(
        &self,
        loc: Loc,
        msg: Msg
    ) -> ReportMore<()> { ... } }

Extension methods for Report. This is what you normally want to use.

Provided Methods

Reports a fatal error with given location and message. Additional errors can be chained and should finish with .done() call.

Reports a recoverable error with given location and message. Additional errors can be chained and should finish with .done() call.

Reports a warning with given location and message. Additional errors can be chained and should finish with .done() call.

Reports an additional information with given location and message. Additional errors can be chained and should finish with .done() call.

Implementors