pub fn render_with_color(
diagnostics: &[Diagnostic],
filename: &str,
source: &str,
color: bool,
) -> StringExpand description
Render diagnostics with an explicit color decision.
color: false guarantees the output contains no ANSI escape sequences.