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

A handler is responsible for emitting warnings and errors

Implementations

Creates a new Handler input_path refers to the path of the input file input_content refers to the content of the input file

Creates a new handler without a path.

Emits a single Diagnostic to the terminal

Emits a RtLolaError to the console

Returns true if an error has occurred

Returns the number of emitted errors

Returns the number of emitted warnings

Emits a simple warning with a message

Emits a warning referring to the code span span with and optional label span_label that is printed next to the code fragment

Emits a simple error with a message

Emits an error referring to the code span span with and optional label span_label that is printed next to the code fragment

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.