Crate diagnostic Copy item path Source Expand description Config A type used to configure a report Diagnostic A type representing a diagnostic that is ready to be written to output. DiagnosticBuilder A type used to build a Diagnostic
. DrawElements The character set used by formatter Label A type that represents a labelled section of identifier code. Paint A structure encapsulating an item and styling. Palette A type that can generate distinct 8-bit colors. SourceCache A [Cache
] that fetches SourceText
s from the filesystem. SourceID A type representing a single line of a [Source
]. SourceSpan A type representing a single line of a [Source
]. Style Represents a set of styling options. BuiltinDrawer Possible character sets to use when rendering diagnostics. Color An enum representing an ANSI color code. LabelAttach The attachment point of inline label arrows ReportKind @trace 0
@print 100
@blame 150
@risky 175
@alert 200
@error 250
@fatal 255
A type that defines the kind of report being produced. Console A trait used to add formatting attributes to displayable items. ReportLevel A builder for Diagnostic
. enable_ansi_color Enables ASCII terminal escape sequences on Windows consoles when
possible. Returns true
if escape sequence support was successfully
enabled and false
otherwise. On non-Windows targets, this method
always returns true
.