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
fn fatal<Loc: Into<Span>, Msg: Localize, T>(
&self,
loc: Loc,
msg: Msg
) -> ReportMore<T>
&self,
loc: Loc,
msg: Msg
) -> ReportMore<T>
Reports a fatal error with given location and message.
Additional errors can be chained and should finish with .done()
call.
fn error<Loc: Into<Span>, Msg: Localize>(
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
Reports a recoverable error with given location and message.
Additional errors can be chained and should finish with .done()
call.
fn warn<Loc: Into<Span>, Msg: Localize>(
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
Reports a warning with given location and message.
Additional errors can be chained and should finish with .done()
call.
fn info<Loc: Into<Span>, Msg: Localize>(
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
&self,
loc: Loc,
msg: Msg
) -> ReportMore<()>
Reports an additional information with given location and message.
Additional errors can be chained and should finish with .done()
call.
Implementors
impl<T: Report> Reporter for T