Module annotate_snippets::renderer
source · Expand description
The renderer for Message
s
§Example
use annotate_snippets::{Renderer, Snippet, Level};
let snippet = Level::Error.title("mismatched types")
.snippet(Snippet::source("Foo").line_start(51).origin("src/format.rs"))
.snippet(Snippet::source("Faa").line_start(129).origin("src/display.rs"));
let renderer = Renderer::styled();
println!("{}", renderer.render(snippet));
Structs§
- 256 (8-bit) color support
- Enumerate each enabled value in
Effects
- A set of text effects
- A renderer for
Message
s - Reset terminal formatting
- 24-bit ANSI RGB color codes
- ANSI Text styling
Enums§
- Available 4-bit ANSI color palette codes
- Any ANSI color code scheme