<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../ariadne/all.html"title="show sidebar"></a></div><inputclass="search-input"name="search"aria-label="Run search in the documentation"autocomplete="off"spellcheck="false"placeholder="Click or press ‘S’ to search, ‘?’ for more options…"type="search"><divid="help-button"tabindex="-1"><ahref="../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Trait <ahref="index.html">ariadne</a>::<wbr><aclass="trait"href="#">StdoutFmt</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../src/ariadne/draw.rs.html#179-189">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub trait StdoutFmt: StreamAwareFmt {
}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>A trait used to add formatting attributes to displayable items intended to be written to <code>stdout</code>.</p>
<p>Attributes specified through this trait are not composable (i.e: the behaviour of two nested attributes each with a
</div></details><h2id="provided-methods"class="section-header">Provided Methods<ahref="#provided-methods"class="anchor">§</a></h2><divclass="methods"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fg"class="method"><aclass="src rightside"href="../src/ariadne/draw.rs.html#181-183">source</a><h4class="code-header">fn <ahref="#method.fg"class="fn">fg</a><C: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="enum"href="enum.Color.html"title="enum ariadne::Color">Color</a>>>>(self, color: C) -> Foreground<Self></h4></section></summary><divclass="docblock"><p>Give this value the specified foreground colour, when color is enabled for <code>stdout</code>.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.bg"class="method"><aclass="src rightside"href="../src/ariadne/draw.rs.html#186-188">source</a><h4class="code-header">fn <ahref="#method.bg"class="fn">bg</a><C: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="enum"href="enum.Color.html"title="enum ariadne::Color">Color</a>>>>(self, color: C) -> Background<Self></h4></section></summary><divclass="docblock"><p>Give this value the specified background colour, when color is enabled for <code>stdout</code>.</p>
</div></details></div><h2id="object-safety"class="section-header">Object Safety<ahref="#object-safety"class="anchor">§</a></h2><divclass="object-safety-info">This trait is <b>not</b><ahref="https://doc.rust-lang.org/1.78.0/reference/items/traits.html#object-safety">object safe</a>.</div><h2id="implementors"class="section-header">Implementors<ahref="#implementors"class="anchor">§</a></h2><divid="implementors-list"><sectionid="impl-StdoutFmt-for-T"class="impl"><aclass="src rightside"href="../src/ariadne/draw.rs.html#192">source</a><ahref="#impl-StdoutFmt-for-T"class="anchor">§</a><h3class="code-header">impl<T: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a>><aclass="trait"href="trait.StdoutFmt.html"title="trait ariadne::StdoutFmt">StdoutFmt</a> for T</h3></section></div><scriptsrc="../trait.impl/ariadne/draw/trait.StdoutFmt.js"async></script></section></div></main></body></html>