Skip to main content

Module renderer

Module renderer 

Source

Structs§

Locus
The ‘location focus’ of a source code snippet.
Metrics 🔒
PlainWriter
A WriteStyle implementation that ignores all styling calls. useful for non color output. Available on all targets
Renderer
A renderer of display list entries.
WriteStyleByRef 🔒

Enums§

MultiLabel
A multi-line label to render.
VerticalBound 🔒

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§

hanging_labels 🔒
Return an iterator that yields the labels that require hanging messages rendered underneath them.
is_overlapping 🔒
Check if two ranges overlap
label_priority_key 🔒
For prioritizing primary labels over secondary labels when rendering carets.

Type Aliases§

GeneralWriteResult
The type returned by formatter methods.
SingleLabel
Single-line label, with an optional message.
Underline 🔒