pub struct CompilerMessage { /* private fields */ }
Expand description

Describes the location and nature of a compiler message.

Implementations

Gets the position in the source where the message was triggered.

Gets the severity of the message.

Gets a reference to the problem variant triggering the message.

Consumes the CompilerMessage and returns its position and info as a tuple.

Gets the message code associated with the message.

Gets a message describing the error.

Gets the inline message text, usually used to annotate the span.

Gets the hint text associated with the message.

Returns true if the message is an error.

Returns true if the message is a warning.

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.