Module annotate_snippets::renderer

source ·
Expand description

The renderer for Messages

§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§

Enums§

  • Available 4-bit ANSI color palette codes
  • Any ANSI color code scheme

Constants§