Skip to main content

Module term

Module term 

Source
Expand description

Terminal back-end for emitting diagnostics.

Modules§

config 🔒
renderer 🔒
views 🔒

Structs§

Chars
Characters to use when rendering the diagnostic.
Config
Configures how a diagnostic is rendered.
Renderer
A renderer of display list entries.
RichDiagnostic
Output a richly formatted diagnostic, with source code previews.
ShortDiagnostic
Output a short diagnostic, with a line number, severity, and message.

Enums§

DisplayStyle
The display style to use when rendering diagnostics.

Traits§

GeneralWrite
A trait for writing or formatting into Unicode-accepting buffers or streams.
WriteStyle
A writer that can apply styling for different parts of a diagnostic renderer.

Functions§

emitDeprecated
Emit a diagnostic using the given writer, context, config, and files.
emit_into_string
emit_to_string
emit_to_write_style
emit_with_style 🔒

Type Aliases§

GeneralWriteResult
The type returned by formatter methods.