[][src]Crate language_reporting

Re-exports

pub extern crate termcolor;

Structs

ColorArg

A command line argument that configures the coloring of the output

Combine
CurriedBlockComponent
CurriedIterBlockComponent
CurriedOnceBlockComponent
DefaultConfig
Diagnostic

Represents a diagnostic message and associated child messages.

Document

The Document is the root node in a render tree.

Each

A list of items that can be appended into a Document. For each item in items, the callback is invoked, and its return value is appended to the document.

Empty
Join

Equivalent to Each(), but inserts a joiner between two adjacent elements.

Label

A label describing an underlined region of code associated with a diagnostic

Location
OnceBlock
Section

A section that can be appended into a document. Sections are invisible, but can be targeted in stylesheets with selectors using their name.

SimpleFile
SimpleReportingFiles
SimpleSpan
Style
Stylesheet

Enums

FileName
LabelStyle

A style for the label

Node
Severity

A severity level for diagnostic messages

Traits

BlockComponent
Config
IterBlockComponent
OnceBlockComponent
Render

The Render trait defines a type that can be added to a Document. It is defined for Node, String, &str, and Document.alloc

RenderComponent

This trait defines a renderable entity with arguments. Types that implement RenderComponent can be packaged up together with their arguments in a Component, and the Component is renderable.

ReportingFiles
ReportingSpan

Functions

Component
Each
IfSome
Join
Line

Inserts a line into a Document. The contents are inserted first, followed by a newline.

Section
SomeValue
Style
add
emit
format
repeat

Creates a Render that, when appended into a Document, repeats a given string a specified number of times.