Module diagnostics

Source
Expand description

Handles the creation and management of user-driven errors with chompy.

Structs§

Builder
A wrapper for diagnostic::Diagnostic to assist in writing diagnostics laconically.
DiagBox
Container for dynamically dispatched implementers of Diag.
Label
A wrapper around codespan_reporting::diagnostic::Label as to not require users to require codespan as a dependency.

Enums§

Severity
Alias for codespan_reporting’s Severity for the sake of not requiring users to have codespan as a dependency.

Traits§

Diag
The core trait used to create user-facing diagnostics in chompy. The macros crate::define_error, crate::define_warning, and crate::define_bug can be utilized to implement this to your types.

Type Aliases§

Result
Alias for a Result that returns DiagBox’s.