<p>This crate provides <ahref="trait.OwoColorize.html"title="trait owo_colors::OwoColorize"><code>OwoColorize</code></a>, an extension trait for colorizing a
</span><spanclass="macro">println!</span>(<spanclass="string">"My number might be {}!"</span>, <spanclass="number">4</span>.fg::<Black>().bg::<Yellow>());
<p>owo-colors also features the ability to create a <ahref="struct.Style.html"title="struct owo_colors::Style"><code>Style</code></a> object and use it to
apply the same set of colors/effects to any number of things to display.</p>
</div></details><h2id="modules"class="section-header">Modules<ahref="#modules"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="mod"href="colored/index.html"title="mod owo_colors::colored">colored</a></div><divclass="desc docblock-short">Module for drop-in <ahref="https://docs.rs/colored"><code>colored</code></a> support to aid in porting code from
<ahref="https://docs.rs/colored"><code>colored</code></a> to owo-colors.</div></li><li><divclass="item-name"><aclass="mod"href="colors/index.html"title="mod owo_colors::colors">colors</a></div><divclass="desc docblock-short">Color types for used for being generic over the color</div></li><li><divclass="item-name"><aclass="mod"href="styles/index.html"title="mod owo_colors::styles">styles</a></div><divclass="desc docblock-short">Different display styles (strikethrough, bold, etc.)</div></li></ul><h2id="structs"class="section-header">Structs<ahref="#structs"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="struct"href="struct.BgColorDisplay.html"title="struct owo_colors::BgColorDisplay">BgColorDisplay</a></div><divclass="desc docblock-short">Transparent wrapper around a type which implements all the formatters the wrapped type does,
with the addition of changing the background color. Recommended to be constructed using
<ahref="trait.OwoColorize.html"title="trait owo_colors::OwoColorize"><code>OwoColorize</code></a>.</div></li><li><divclass="item-name"><aclass="struct"href="struct.BgDynColorDisplay.html"title="struct owo_colors::BgDynColorDisplay">BgDynColorDisplay</a></div><divclass="desc docblock-short">Wrapper around a type which implements all the formatters the wrapped type does,
with the addition of changing the background color. Is not recommended unless compile-time
coloring is not an option.</div></li><li><divclass="item-name"><aclass="struct"href="struct.ComboColorDisplay.html"title="struct owo_colors::ComboColorDisplay">ComboColorDisplay</a></div><divclass="desc docblock-short">A wrapper type which applies both a foreground and background color</div></li><li><divclass="item-name"><aclass="struct"href="struct.FgColorDisplay.html"title="struct owo_colors::FgColorDisplay">FgColorDisplay</a></div><divclass="desc docblock-short">Transparent wrapper around a type which implements all the formatters the wrapped type does,
with the addition of changing the foreground color. Recommended to be constructed using
<ahref="trait.OwoColorize.html"title="trait owo_colors::OwoColorize"><code>OwoColorize</code></a>.</div></li><li><divclass="item-name"><aclass="struct"href="struct.FgDynColorDisplay.html"title="struct owo_colors::FgDynColorDisplay">FgDynColorDisplay</a></div><divclass="desc docblock-short">Wrapper around a type which implements all the formatters the wrapped type does,
with the addition of changing the foreground color. Is not recommended unless compile-time
coloring is not an option.</div></li><li><divclass="item-name"><aclass="struct"href="struct.ParseColorError.html"title="struct owo_colors::ParseColorError">ParseColorError</a></div><divclass="desc docblock-short">An error for when the color can not be parsed from a string at runtime</div></li><li><divclass="item-name"><aclass="struct"href="struct.Rgb.html"title="struct owo_colors::Rgb">Rgb</a></div><divclass="desc docblock-short">Available RGB colors for use with <ahref="trait.OwoColorize.html#method.color"title="method owo_colors::OwoColorize::color"><code>OwoColorize::color</code></a>
or <ahref="trait.OwoColorize.html#method.on_color"title="method owo_colors::OwoColorize::on_color"><code>OwoColorize::on_color</code></a></div></li><li><divclass="item-name"><aclass="struct"href="struct.Style.html"title="struct owo_colors::Style">Style</a></div><divclass="desc docblock-short">A pre-computed style that can be applied to a struct using <ahref="trait.OwoColorize.html#method.style"title="method owo_colors::OwoColorize::style"><code>OwoColorize::style</code></a>. Its
interface mimics that of <ahref="trait.OwoColorize.html"title="trait owo_colors::OwoColorize"><code>OwoColorize</code></a>, but instead of chaining methods on your
object, you instead chain them on the <code>Style</code> object before applying it.</div></li><li><divclass="item-name"><aclass="struct"href="struct.Styled.html"title="struct owo_colors::Styled">Styled</a></div><divclass="desc docblock-short">A wrapper type which applies a <ahref="struct.Style.html"title="struct owo_colors::Style"><code>Style</code></a> when displaying the inner type</div></li><li><divclass="item-name"><aclass="struct"href="struct.StyledList.html"title="struct owo_colors::StyledList">StyledList</a></div><divclass="desc docblock-short">A collection of <ahref="struct.Styled.html"title="struct owo_colors::Styled"><code>Styled</code></a> items that are displayed in such a way as to minimize the amount of characters
that are written when displayed.</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.AnsiColors.html"title="enum owo_colors::AnsiColors">AnsiColors</a></div><divclass="desc docblock-short">Available standard ANSI colors for use with <ahref="trait.OwoColorize.html#method.color"title="method owo_colors::OwoColorize::color"><code>OwoColorize::color</code></a>
or <ahref="trait.OwoColorize.html#method.on_color"title="method owo_colors::OwoColorize::on_color"><code>OwoColorize::on_color</code></a></div></li><li><divclass="item-name"><aclass="enum"href="enum.CssColors.html"title="enum owo_colors::CssColors">CssColors</a></div><divclass="desc docblock-short">Available CSS colors for use with <ahref="trait.OwoColorize.html#method.color"title="method owo_colors::OwoColorize::color"><code>OwoColorize::color</code></a>
or <ahref="trait.OwoColorize.html#method.on_color"title="method owo_colors::OwoColorize::on_color"><code>OwoColorize::on_color</code></a></div></li><li><divclass="item-name"><aclass="enum"href="enum.DynColors.html"title="enum owo_colors::DynColors">DynColors</a></div><divclass="desc docblock-short">An enum describing runtime-configurable colors which can be displayed using <ahref="struct.FgDynColorDisplay.html"title="struct owo_colors::FgDynColorDisplay"><code>FgDynColorDisplay</code></a>
or <ahref="struct.BgDynColorDisplay.html"title="struct owo_colors::BgDynColorDisplay"><code>BgDynColorDisplay</code></a>, allowing for multiple types of colors to be used
at runtime.</div></li><li><divclass="item-name"><aclass="enum"href="enum.Effect.html"title="enum owo_colors::Effect">Effect</a></div><divclass="desc docblock-short">A runtime-configurable text effect for use with <ahref="struct.Style.html"title="struct owo_colors::Style"><code>Style</code></a></div></li><li><divclass="item-name"><aclass="enum"href="enum.XtermColors.html"title="enum owo_colors::XtermColors">XtermColors</a></div><divclass="desc docblock-short">Available Xterm colors for use with <ahref="trait.OwoColorize.html#method.color"title="method owo_colors::OwoColorize::color"><code>OwoColorize::color</code></a>
or <ahref="trait.OwoColorize.html#method.on_color"title="method owo_colors::OwoColorize::on_color"><code>OwoColorize::on_color</code></a></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.Color.html"title="trait owo_colors::Color">Color</a></div><divclass="desc docblock-short">A trait for describing a type which can be used with <ahref="struct.FgColorDisplay.html"title="struct owo_colors::FgColorDisplay"><code>FgColorDisplay</code></a> or
<ahref="struct.BgColorDisplay.html"title="struct owo_colors::BgColorDisplay"><code>BgColorDisplay</code></a></div></li><li><divclass="item-name"><aclass="trait"href="trait.DynColor.html"title="trait owo_colors::DynColor">DynColor</a></div><divclass="desc docblock-short">A trait describing a runtime-configurable color which can displayed using <ahref="struct.FgDynColorDisplay.html"title="struct owo_colors::FgDynColorDisplay"><code>FgDynColorDisplay</code></a>
or <ahref="struct.BgDynColorDisplay.html"title="struct owo_colors::BgDynColorDisplay"><code>BgDynColorDisplay</code></a>. If your color will be known at compile time it
is recommended you avoid this.</div></li><li><divclass="item-name"><aclass="trait"href="trait.OwoColorize.html"title="trait owo_colors::OwoColorize">OwoColorize</a></div><divclass="desc docblock-short">Extension trait for colorizing a type which implements any std formatter
etc.)</div></li></ul><h2id="functions"class="section-header">Functions<ahref="#functions"class="anchor">§</a></h2><ulclass="item-table"><li><divclass="item-name"><aclass="fn"href="fn.style.html"title="fn owo_colors::style">style</a></div><divclass="desc docblock-short">Helper to create <ahref="struct.Style.html"title="struct owo_colors::Style"><code>Style</code></a>s more ergonomically</div></li></ul></section></div></main></body></html>