Struct ariadne::ReportBuilder

source ·
pub struct ReportBuilder<'a, S: Span> { /* private fields */ }
Expand description

A type used to build a Report.

Implementations§

Give this report a numerical code that may be used to more precisely look up the error in documentation.

Set the message of this report.

Add a message to this report.

Set the note of this report.

Set the note of this report.

Set the help message of this report.

Set the help message of this report.

Add a label to the report.

Add multiple labels to the report.

Add a label to the report.

Add multiple labels to the report.

Use the given Config to determine diagnostic attributes.

Finish building the Report.

Trait Implementations§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.