<!DOCTYPE html><htmllang="en"><head><metacharset="utf-8"><metaname="viewport"content="width=device-width, initial-scale=1.0"><metaname="generator"content="rustdoc"><metaname="description"content="A trait to apply styling to any value. Implemented for all types."><title>Paint in yansi - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><linkrel="stylesheet"href="../static.files/normalize-76eba96aa4d2e634.css"><linkrel="stylesheet"href="../static.files/rustdoc-dd39b87e5fcfba68.css"><metaname="rustdoc-vars"data-root-path="../"data-static-root-path="../static.files/"data-current-crate="yansi"data-themes=""data-resource-suffix=""data-rustdoc-version="1.80.0 (051478957 2024-07-21)"data-channel="1.80.0"data-search-js="search-d52510db62a78183.js"data-settings-js="settings-4313503d2e1961c2.js"><scriptsrc="../static.files/storage-118b08c4c78b968e.js"></script><scriptdefersrc="sidebar-items.js"></script><scriptdefersrc="../static.files/main-20a3ad099b048cf2.js"></script><noscript><linkrel="stylesheet"href="../static.files/noscript-df360f571f6edeae.css"></noscript><linkrel="alternate icon"type="image/png"href="../static.files/favicon-32x32-422f7d1d52889060.png"><linkrel="icon"type="image/svg+xml"href="../static.files/favicon-2c020d218678b618.svg"></head><bodyclass="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><navclass="mobile-topbar"><buttonclass="sidebar-menu-toggle"title="show sidebar"></button><aclass="logo-container"href="../yansi/index.html"><imgsrc="https://raw.githubusercontent.com/SergioBenitez/yansi/master/.github/yansi-logo.png"alt=""></a></nav><navclass="sidebar"><divclass="sidebar-crate"><aclass="logo-container"href="../yansi/index.html"><imgsrc="https://raw.githubusercontent.com/SergioBenitez/yansi/master/.github/yansi-logo.png"alt="logo"></a><h2><ahref="../yansi/index.html">yansi</a><spanclass="version">1.0.1</span></h2></div><h2class="location"><ahref="#">Paint</a></h2><divclass="sidebar-elems"><section><h3><ahref="#required-methods">Required Methods</a></h3><ulclass="block"><li><ahref="#tymethod.attr">attr</a></li><li><ahref="#tymethod.bg">bg</a></li><li><ahref="#tymethod.black">black</a></li><li><ahref="#tymethod.blink">blink</a></li><li><ahref="#tymethod.blue">blue</a></li><li><ahref="#tymethod.bold">bold</a></li><li><ahref="#tymethod.bright">bright</a></li><li><ahref="#tymethod.bright_black">bright_black</a></li><li><ahref="#tymethod.bright_blue">bright_blue</a></li><li><ahref="#tymethod.bright_cyan">bright_cyan</a></li><li><ahref="#tymethod.bright_green">bright_green</a></li><li><ahref="#tymethod.bright_magenta">bright_magenta</a></li><li><ahref="#tymethod.bright_red">bright_red</a></li><li><ahref="#tymethod.bright_white">bright_white</a></li><li><ahref="#tymethod.bright_yellow">bright_yellow</a></li><li><ahref="#tymethod.clear">clear</a></li><li><ahref="#tymethod.conceal">conceal</a></li><li><ahref="#tymethod.cyan">cyan</a></li><li><ahref="#tymethod.dim">dim</a></li><li><ahref="#tymethod.fg">fg</a></li><li><ahref="#tymethod.fixed">fixed</a></li><li><ahref="#tymethod.green">green</a></li><li><ahref="#tymethod.invert">invert</a></li><li><ahref="#tymethod.italic">italic</a></li><li><ahref="#tymethod.linger">linger</a></li><li><ahref="#tymethod.magenta">magenta</a></li><li><ahref="#tymethod.mask">mask</a></li><li><ahref="#tymethod.on_black">on_black</a></li><li><ahref="#tymethod.on_blue">on_blue</a></li><li><ahref="#tymethod.on_bright">on_bright</a></li><li><ahref="#tymethod.on_bright_black">on_bright_black</a></li><li><ahref
</details>}</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>A trait to apply styling to any value. Implemented for all types.</p>
<p>Because this trait is implemented for all types, you can use its methods on
any type. With the exception of one constructor method, <ahref="trait.Paint.html#method.new"title="method yansi::Paint::new"><code>Paint::new()</code></a>,
<p>All methods return a <ahref="struct.Painted.html"title="struct yansi::Painted"><code>Painted</code></a> whose methods are exactly those of <code>Paint</code>.
This means you can chain <code>Paint</code> method calls:</p>
<p>This is nearly always what you want. In the exceedingly rare case that you
<em>do</em> want <code>Painted</code> to own its value, use <ahref="trait.Paint.html#method.new"title="method yansi::Paint::new"><code>Paint::new()</code></a> or the equivalent
<ahref="struct.Painted.html#method.new"title="associated function yansi::Painted::new"><code>Painted::new()</code></a>:</p>
</div></details><h2id="required-methods"class="section-header">Required Methods<ahref="#required-methods"class="anchor">§</a></h2><divclass="methods"><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.fg"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.fg"class="fn">fg</a>(&self, value: <aclass="enum"href="enum.Color.html"title="enum yansi::Color">Color</a>) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns a styled value derived from <code>self</code> with the foreground set to
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.primary"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.primary"class="fn">primary</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.black"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.black"class="fn">black</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.red"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.red"class="fn">red</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.green"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.green"class="fn">green</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.yellow"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.yellow"class="fn">yellow</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.blue"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.blue"class="fn">blue</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.magenta"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.magenta"class="fn">magenta</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.cyan"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.cyan"class="fn">cyan</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.white"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.white"class="fn">white</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_black"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_black"class="fn">bright_black</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_red"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_red"class="fn">bright_red</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_green"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_green"class="fn">bright_green</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_yellow"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_yellow"class="fn">bright_yellow</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_blue"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_blue"class="fn">bright_blue</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_magenta"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_magenta"class="fn">bright_magenta</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_cyan"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_cyan"class="fn">bright_cyan</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright_white"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright_white"class="fn">bright_white</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bg"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bg"class="fn">bg</a>(&self, value: <aclass="enum"href="enum.Color.html"title="enum yansi::Color">Color</a>) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns a styled value derived from <code>self</code> with the background set to
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_primary"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_primary"class="fn">on_primary</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_black"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_black"class="fn">on_black</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_red"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_red"class="fn">on_red</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_green"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_green"class="fn">on_green</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_yellow"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_yellow"class="fn">on_yellow</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_blue"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_blue"class="fn">on_blue</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_magenta"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_magenta"class="fn">on_magenta</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_cyan"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_cyan"class="fn">on_cyan</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_white"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_white"class="fn">on_white</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_black"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_black"class="fn">on_bright_black</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_red"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_red"class="fn">on_bright_red</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_green"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_green"class="fn">on_bright_green</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_yellow"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_yellow"class="fn">on_bright_yellow</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_blue"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_blue"class="fn">on_bright_blue</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_magenta"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_magenta"class="fn">on_bright_magenta</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_cyan"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_cyan"class="fn">on_bright_cyan</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright_white"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright_white"class="fn">on_bright_white</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bold"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bold"class="fn">bold</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.dim"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.dim"class="fn">dim</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.italic"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.italic"class="fn">italic</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.underline"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.underline"class="fn">underline</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.blink"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.blink"class="fn">blink</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.rapid_blink"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.rapid_blink"class="fn">rapid_blink</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.invert"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.invert"class="fn">invert</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.conceal"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.conceal"class="fn">conceal</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.strike"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.strike"class="fn">strike</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.mask"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.mask"class="fn">mask</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.wrap"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.wrap"class="fn">wrap</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.linger"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.linger"class="fn">linger</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.clear"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.clear"class="fn">clear</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section><spanclass="item-info"><divclass="stab deprecated"><spanclass="emoji">👎</span><span>Deprecated since 1.0.1: renamed to <code>resetting()</code> due to conflicts with <code>Vec::clear()</code>.
The <code>clear()</code> method will be removed in a future release.</span></div></span></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.resetting"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.resetting"class="fn">resetting</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.bright"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.bright"class="fn">bright</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="tymethod.on_bright"class="method"><aclass="src rightside"href="../src/yansi/paint.rs.html#130">source</a><h4class="code-header">fn <ahref="#tymethod.on_bright"class="fn">on_bright</a>(&self) -><aclass="struct"href="struct.Painted.html"title="struct yansi::Painted">Painted</a><<aclass="primitive"href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&Self</a>></h4></section></summary><divclass="docblock"><p>Returns <code>self</code> with the
Self: <aclass="trait"href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass="docblock"><p>Create a new <ahref="struct.Painted.html"title="struct yansi::Painted"><code>Painted</code></a> with a default <ahref="struct.Style.html"title="struct yansi::Style"><code>Style</code></a>.</p>