pub fn render_diagnostic(
diagnostic: &Diagnostic,
source: &str,
) -> Result<String>Expand description
Render an Ariadne source diagnostic without ANSI color escapes.
§Errors
Returns InvalidInput if offsets do not belong to the supplied UTF-8 source.
Output failures are returned instead of printing or silently discarding a report.