Struct kailua_diag::report::ReportMore
[−]
[src]
#[must_use]pub struct ReportMore<'a, T> { /* fields omitted */ }
A helper type for additional reports to the root message.
Methods
impl<'a, T> ReportMore<'a, T>
[src]
fn cause<Loc: Into<Span>, Msg: Localize>(
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
Reports a cause of the root message with given location and message.
fn note<Loc: Into<Span>, Msg: Localize>(
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
Reports a note for the root message with given location and message.
fn note_if<Loc: Into<Span>, Msg: Localize>(
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
self,
loc: Loc,
msg: Msg
) -> ReportMore<'a, T>
Same to note
but only reports for non-dummy spans.
This is useful for reporting multiple spans where some of them can be dummy.
fn done(self) -> Result<T>
Finishes the reporting. Should be called for any Reporter
-initiated report.