Module term

Module term 

Source
Expand description

Terminal back-end for emitting diagnostics.

Re-exports§

pub use config::styles::termcolor;

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.
Styles
Styles to use when rendering the diagnostic.
StylesWriter
A WriteStyle implementation that applies custom Styles using termcolor.

Enums§

DisplayStyle
The display style to use when rendering diagnostics.

Traits§

GeneralWrite
A trait for objects which are byte-oriented sinks.
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_io_write
emit_to_string
emit_to_write_style

Type Aliases§

GeneralWriteResult