<divclass="example-wrap ignore"><ahref="#"class="tooltip"title="This example is not tested">ⓘ</a><preclass="rust rust-example-rendered"><code><spanclass="kw">fn </span>main() {
<li><code>"concolor"</code> enables integration with the <ahref="https://crates.io/crates/concolor"><code>concolor</code></a> crate for global color output
control across your application</li>
<li><code>"auto-color"</code> enables <code>concolor</code>’s <code>"auto"</code> feature for automatic color control</li>
</ul>
<p><code>concolor</code>’s features should be defined by the top-level binary crate, but without any features enabled <code>concolor</code> does
nothing. If <code>ariadne</code> is your only dependency using <code>concolor</code> then <code>"auto-color"</code> provides a convenience to enable
<code>concolor</code>’s automatic color support detection, i.e. this:</p>
<p><code>@brendanzab</code> for their beautiful <ahref="https://github.com/brendanzab/codespan"><code>codespan</code></a> crate that inspired me to try
pushing the envelope of error diagnostics.</p>
</li>
<li>
<p><code>@estebank</code> for showing innumerable people just how good compiler diagnostics can be through their work on Rust.</p>
</div></details><h2id="structs"class="section-header">Structs<ahref="#structs"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="struct"href="struct.ColorGenerator.html"title="struct ariadne::ColorGenerator">ColorGenerator</a></div><divclass="desc docblock-short">A type that can generate distinct 8-bit colors.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Config.html"title="struct ariadne::Config">Config</a></div><divclass="desc docblock-short">A type used to configure a report</div></li><li><divclass="item-name"><aclass="struct"href="struct.FileCache.html"title="struct ariadne::FileCache">FileCache</a></div><divclass="desc docblock-short">A <ahref="trait.Cache.html"title="trait ariadne::Cache"><code>Cache</code></a> that fetches <ahref="struct.Source.html"title="struct ariadne::Source"><code>Source</code></a>s from the filesystem.</div></li><li><divclass="item-name"><aclass="struct"href="struct.FnCache.html"title="struct ariadne::FnCache">FnCache</a></div><divclass="desc docblock-short">A <ahref="trait.Cache.html"title="trait ariadne::Cache"><code>Cache</code></a> that fetches <ahref="struct.Source.html"title="struct ariadne::Source"><code>Source</code></a>s using the provided function.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Label.html"title="struct ariadne::Label">Label</a></div><divclass="desc docblock-short">A type that represents a labelled section of source code.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Line.html"title="struct ariadne::Line">Line</a></div><divclass="desc docblock-short">A type representing a single line of a <ahref="struct.Source.html"title="struct ariadne::Source"><code>Source</code></a>.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Report.html"title="struct ariadne::Report">Report</a></div><divclass="desc docblock-short">A type representing a diagnostic that is ready to be written to output.</div></li><li><divclass="item-name"><aclass="struct"href="struct.ReportBuilder.html"title="struct ariadne::ReportBuilder">ReportBuilder</a></div><divclass="desc docblock-short">A type used to build a <ahref="struct.Report.html"title="struct ariadne::Report"><code>Report</code></a>.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Source.html"title="struct ariadne::Source">Source</a></div><divclass="desc docblock-short">A type representing a single source that may be referred to by <ahref="trait.Span.html"title="trait ariadne::Span"><code>Span</code></a>s.</div></li></ul><h2id="enums"class="section-header">Enums<ahref="#enums"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="enum"href="enum.CharSet.html"title="enum ariadne::CharSet">CharSet</a></div><divclass="desc docblock-short">Possible character sets to use when rendering diagnostics.</div></li><li><divclass="item-name"><aclass="enum"href="enum.Color.html"title="enum ariadne::Color">Color</a></div><divclass="desc docblock-short">Enum representing a terminal color.</div></li><li><divclass="item-name"><aclass="enum"href="enum.IndexType.html"title="enum ariadne::IndexType">IndexType</a></div><divclass="desc docblock-short">Possible character sets to use when rendering diagnostics.</div></li><li><divclass="item-name"><aclass="enum"href="enum.LabelAttach.html"title="enum ariadne::LabelAttach">LabelAttach</a></div><divclass="desc docblock-short">The attachment point of inline label arrows</div></li><li><divclass="item-name"><aclass="enum"href="enum.ReportKind.html"title="enum ariadne::ReportKind">ReportKind</a></div><divclass="desc docblock-short">A type that defines the kind of report being produced.</div></li></ul><h2id="traits"class="section-header">Traits<ahref="#traits"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="trait"href="trait.Cache.html"title="trait ariadne::Cache">Cache</a></div><divclass="desc docblock-short">A trait implemented by <ahref="st