Skip to main content

render_with_color

Function render_with_color 

Source
pub fn render_with_color(
    diagnostics: &[Diagnostic],
    filename: &str,
    source: &str,
    color: bool,
) -> String
Expand description

Render diagnostics with an explicit color decision.

color: false guarantees the output contains no ANSI escape sequences.