wasmer/rustdoc/rgb/struct.RGBA.html

115 lines
98 KiB
HTML
Raw Permalink Normal View History

2019-09-06 15:57:44 -07:00
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `RGBA` struct in crate `rgb`."><meta name="keywords" content="rust, rustlang, rust-lang, RGBA"><title>rgb::RGBA - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../rgb/index.html'><div class='logo-container'><img src='https://kornel.ski/rgb-logo.png' alt='logo'></div></a><p class='location'>Struct RGBA</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.r">r</a><a href="#structfield.g">g</a><a href="#structfield.b">b</a><a href="#structfield.a">a</a></div><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.alpha">alpha</a><a href="#method.iter">iter</a><a href="#method.map_alpha">map_alpha</a><a href="#method.map_rgb">map_rgb</a><a href="#method.new">new</a><a href="#method.new_alpha">new_alpha</a><a href="#method.rgb">rgb</a><a href="#method.rgb_mut">rgb_mut</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Add%3CRGBA%3CT%2C%20A%3E%3E">Add&lt;RGBA&lt;T, A&gt;&gt;</a><a href="#impl-Add%3CT%3E">Add&lt;T&gt;</a><a href="#impl-AddAssign%3CRGBA%3CT%2C%20A%3E%3E">AddAssign&lt;RGBA&lt;T, A&gt;&gt;</a><a href="#impl-AddAssign%3CT%3E">AddAssign&lt;T&gt;</a><a href="#impl-AsMut%3C%5BT%5D%3E">AsMut&lt;[T]&gt;</a><a href="#impl-AsPixels%3CRGBA%3CT%2C%20T%3E%3E">AsPixels&lt;RGBA&lt;T, T&gt;&gt;</a><a href="#impl-AsRef%3C%5BT%5D%3E">AsRef&lt;[T]&gt;</a><a href="#impl-Clone">Clone</a><a href="#impl-ComponentMap%3CRGBA%3CB%2C%20B%3E%2C%20T%2C%20B%3E">ComponentMap&lt;RGBA&lt;B, B&gt;, T, B&gt;</a><a href="#impl-ComponentSlice%3CT%3E">ComponentSlice&lt;T&gt;</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Default">Default</a><a href="#impl-Display">Display</a><a href="#impl-Eq">Eq</a><a href="#impl-From%3C%5BT%3B%204%5D%3E">From&lt;[T; 4]&gt;</a><a href="#impl-From%3C(T%2C%20T%2C%20T%2C%20A)%3E">From&lt;(T, T, T, A)&gt;</a><a href="#impl-From%3CBGR%3CT%3E%3E">From&lt;BGR&lt;T&gt;&gt;</a><a href="#impl-From%3CBGRA%3CT%2C%20T%3E%3E">From&lt;BGRA&lt;T, T&gt;&gt;</a><a href="#impl-From%3CGrayAlpha%3CT%2C%20A%3E%3E">From&lt;GrayAlpha&lt;T, A&gt;&gt;</a><a href="#impl-From%3CRGB%3CT%3E%3E">From&lt;RGB&lt;T&gt;&gt;</a><a href="#impl-From%3CRGBA%3CT%2C%20T%3E%3E">From&lt;RGBA&lt;T, T&gt;&gt;</a><a href="#impl-From%3CRGBA%3Cf32%2C%20f32%3E%3E">From&lt;RGBA&lt;f32, f32&gt;&gt;</a><a href="#impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E">From&lt;RGBA&lt;i16, i16&gt;&gt;</a><a href="#impl-From%3CRGBA%3Ci32%2C%20i32%3E%3E">From&lt;RGBA&lt;i32, i32&gt;&gt;</a><a href="#impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E">From&lt;RGBA&lt;u16, u16&gt;&gt;</a><a href="#impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E">From&lt;RGBA&lt;u8, u8&gt;&gt;</a><a href="#impl-FromIterator%3CT%3E">FromIterator&lt;T&gt;</a><a href="#impl-Hash">Hash</a><a href="#impl-Into%3C%5BT%3B%204%5D%3E">Into&lt;[T; 4]&gt;</a><a href="#impl-Into%3C(T%2C%20T%2C%20T%2C%20A)%3E">Into&lt;(T, T, T, A)&gt;</a><a href="#impl-Mul%3CT%3E">Mul&lt;T&gt;</a><a href="#impl-MulAssign%3CT%3E">MulAssign&lt;T&gt;</a><a href="#impl-Ord">Ord</a><a hre
</span>pub struct RGBA&lt;ComponentType, AlphaComponentType&nbsp;=&nbsp;ComponentType&gt; {
pub r: ComponentType,
pub g: ComponentType,
pub b: ComponentType,
pub a: AlphaComponentType,
}</pre></div><div class='docblock'><p>The RGBA pixel</p>
<p>The component type can be <code>u8</code> (aliased as <code>RGBA8</code>), <code>u16</code> (aliased as <code>RGBA16</code>),
or any other type (but simple copyable types are recommended.)</p>
<p>You can specify a different type for alpha, but it's only for special cases
(e.g. if you use a newtype like <code>RGBA&lt;LinearLight&lt;u16&gt;, u16&gt;</code>).</p>
</div><h2 id='fields' class='fields small-section-header'>
Fields<a href='#fields' class='anchor'></a></h2><span id="structfield.r" class="structfield small-section-header"><a href="#structfield.r" class="anchor field"></a><code id="r.v">r: ComponentType</code></span><div class='docblock'><p>Red</p>
</div><span id="structfield.g" class="structfield small-section-header"><a href="#structfield.g" class="anchor field"></a><code id="g.v">g: ComponentType</code></span><div class='docblock'><p>Green</p>
</div><span id="structfield.b" class="structfield small-section-header"><a href="#structfield.b" class="anchor field"></a><code id="b.v">b: ComponentType</code></span><div class='docblock'><p>Blue</p>
</div><span id="structfield.a" class="structfield small-section-header"><a href="#structfield.a" class="anchor field"></a><code id="a.v">a: AlphaComponentType</code></span><div class='docblock'><p>Alpha</p>
</div><h2 id='methods' class='small-section-header'>Methods<a href='#methods' class='anchor'></a></h2><h3 id='impl' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#11-18' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new' class="method"><code id='new.v'>pub const fn <a href='#method.new' class='fnname'>new</a>(r: T, g: T, b: T, a: T) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#15-17' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convenience function for creating a new pixel
The order of arguments is R,G,B,A</p>
</div></div><h3 id='impl-1' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#20-27' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.new_alpha' class="method"><code id='new_alpha.v'>pub const fn <a href='#method.new_alpha' class='fnname'>new_alpha</a>(r: T, g: T, b: T, a: A) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#24-26' title='goto source code'>[src]</a></h4><div class='docblock'><p>Convenience function for creating a new pixel
The order of arguments is R,G,B,A</p>
</div></div><h3 id='impl-2' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-2' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#29-35' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.iter' class="method"><code id='iter.v'>pub fn <a href='#method.iter' class='fnname'>iter</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/struct.Cloned.html" title="struct core::iter::adapters::Cloned">Cloned</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/core/slice/struct.Iter.html" title="struct core::slice::Iter">Iter</a>&lt;T&gt;&gt;</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#32-34' title='goto source code'>[src]</a></h4><div class='docblock'><p>Iterate over all components (length=4)</p>
</div></div><h3 id='impl-3' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, A&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-3' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#37-45' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.rgb' class="method"><code id='rgb.v'>pub fn <a href='#method.rgb' class='fnname'>rgb</a>(&amp;self) -&gt; <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#42-44' title='goto source code'>[src]</a></h4><div class='docblock'><p>Copy RGB components out of the RGBA struct</p>
<p>Note: you can use <code>.into()</code> to convert between other types</p>
</div></div><h3 id='impl-4' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-4' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#47-56' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.rgb_mut' class="method"><code id='rgb_mut.v'>pub fn <a href='#method.rgb_mut' class='fnname'>rgb_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#51-55' title='goto source code'>[src]</a></h4><div class='docblock'><p>Provide a mutable view of only RGB components (leaving out alpha).
Useful to change color without changing opacity.</p>
</div></div><h3 id='impl-5' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-5' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#58-86' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.map_rgb' class="method"><code id='map_rgb.v'>pub fn <a href='#method.map_rgb' class='fnname'>map_rgb</a>&lt;F, U, B&gt;(&amp;self, f: F) -&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;U, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -&gt; U,<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;A&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#61-65' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create new RGBA with the same alpha value, but different RGB values</p>
</div><h4 id='method.alpha' class="method"><code id='alpha.v'>pub fn <a href='#method.alpha' class='fnname'>alpha</a>(&amp;self, a: A) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#69-73' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a new RGBA with the new alpha value, but same RGB values</p>
</div><h4 id='method.map_alpha' class="method"><code id='map_alpha.v'>pub fn <a href='#method.map_alpha' class='fnname'>map_alpha</a>&lt;F, B&gt;(&amp;self, f: F) -&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</a>(A) -&gt; B,&nbsp;</span></code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#77-85' title='goto source code'>[src]</a></h4><div class='docblock'><p>Create a new RGBA with a new alpha value created by the callback.
Allows changing of the type used for the alpha channel.</p>
</div></div><h2 id='implementations' class='small-section-header'>Trait Implementations<a href='#implementations' class='anchor'></a></h2><div id='implementations-list'><h3 id='impl-AsPixels%3CRGBA%3CT%2C%20T%3E%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../rgb/trait.AsPixels.html" title="trait rgb::AsPixels">AsPixels</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, T&gt;&gt; for [T]</code><a href='#impl-AsPixels%3CRGBA%3CT%2C%20T%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#41-52' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_pixels' class="method hidden"><code id='as_pixels.v'>fn <a href='../rgb/trait.AsPixels.html#tymethod.as_pixels' class='fnname'>as_pixels</a>(&amp;self) -&gt; &amp;[<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;]</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#42-46' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Reinterpret the slice as a read-only/shared slice of pixels. Multiple consecutive elements in the slice are intepreted as a single pixel (depending on format, e.g. 3 for RGB, 4 for RGBA). <a href="../rgb/trait.AsPixels.html#tymethod.as_pixels">Read more</a></p>
</div><h4 id='method.as_pixels_mut' class="method hidden"><code id='as_pixels_mut.v'>fn <a href='../rgb/trait.AsPixels.html#tymethod.as_pixels_mut' class='fnname'>as_pixels_mut</a>(&amp;mut self) -&gt; &amp;mut [<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;]</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#47-51' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Reinterpret the slice as a mutable/exclusive slice of pixels. Multiple consecutive elements in the slice are intepreted as a single pixel (depending on format, e.g. 3 for RGB, 4 for RGBA). <a href="../rgb/trait.AsPixels.html#tymethod.as_pixels_mut">Read more</a></p>
</div></div><h3 id='impl-ComponentSlice%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../rgb/trait.ComponentSlice.html" title="trait rgb::ComponentSlice">ComponentSlice</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-ComponentSlice%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#103-117' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_slice' class="method hidden"><code id='as_slice.v'>fn <a href='../rgb/trait.ComponentSlice.html#tymethod.as_slice' class='fnname'>as_slice</a>(&amp;self) -&gt; &amp;[T]</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#105-109' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>The components interpreted as an array, e.g. one <code>RGB</code> expands to 3 elements. <a href="../rgb/trait.ComponentSlice.html#tymethod.as_slice">Read more</a></p>
</div><h4 id='method.as_mut_slice' class="method hidden"><code id='as_mut_slice.v'>fn <a href='../rgb/trait.ComponentSlice.html#tymethod.as_mut_slice' class='fnname'>as_mut_slice</a>(&amp;mut self) -&gt; &amp;mut [T]</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#112-116' title='goto source code'>[src]</a></h4></div><h3 id='impl-ComponentMap%3CRGBA%3CB%2C%20B%3E%2C%20T%2C%20B%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, B&gt; <a class="trait" href="../rgb/trait.ComponentMap.html" title="trait rgb::ComponentMap">ComponentMap</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;B, B&gt;, T, B&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-ComponentMap%3CRGBA%3CB%2C%20B%3E%2C%20T%2C%20B%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#88-101' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.map' class="method hidden"><code id='map.v'>fn <a href='../rgb/trait.ComponentMap.html#tymethod.map' class='fnname'>map</a>&lt;F&gt;(&amp;self, f: F) -&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(T) -&gt; B,&nbsp;</span></code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#90-100' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Convenience function (equivalent of <code>self.iter().map().collect()</code>) for applying the same formula to every component. <a href="../rgb/trait.ComponentMap.html#tymethod.map">Read more</a></p>
</div></div><h3 id='impl-From%3C%5BT%3B%204%5D%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;[T; 4]&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-From%3C%5BT%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#22-32' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from' class="method hidden"><code id='from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: [T; 4]) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#24-31' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3C(T%2C%20T%2C%20T%2C%20A)%3E' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;(T, T, T, A)&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-From%3C(T%2C%20T%2C%20T%2C%20A)%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#25-35' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-1' class="method hidden"><code id='from.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: (T, T, T, A)) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#27-34' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16, u16&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i32&gt;</code><a href='#impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-2' class="method hidden"><code id='from.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u8, u8&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f32&gt;</code><a href='#impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-3' class="method hidden"><code id='from.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u8&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E-1' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u8, u8&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f64&gt;</code><a href='#impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-4' class="method hidden"><code id='from.v-4'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u8&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E-1' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16, u16&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f32&gt;</code><a href='#impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-5' class="method hidden"><code id='from.v-5'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E-2' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16, u16&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f64&gt;</code><a href='#impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E-2' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-6' class="method hidden"><code id='from.v-6'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;u16&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i16, i16&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f32&gt;</code><a href='#impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-7' class="method hidden"><code id='from.v-7'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i16&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E-1' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i16, i16&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f64&gt;</code><a href='#impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-8' class="method hidden"><code id='from.v-8'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i16&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Ci32%2C%20i32%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i32, i32&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f64&gt;</code><a href='#impl-From%3CRGBA%3Ci32%2C%20i32%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-9' class="method hidden"><code id='from.v-9'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;i32&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3Cf32%2C%20f32%3E%3E' class='impl'><code class='in-band'>impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f32, f32&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f64&gt;</code><a href='#impl-From%3CRGBA%3Cf32%2C%20f32%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#140-146' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-10' class="method hidden"><code id='from.v-10'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;f32&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#143-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CGrayAlpha%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/alt/struct.GrayAlpha.html" title="struct rgb::alt::GrayAlpha">GrayAlpha</a>&lt;T, A&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-From%3CGrayAlpha%3CT%2C%20A%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#188-197' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-11' class="method hidden"><code id='from.v-11'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/alt/struct.GrayAlpha.html" title="struct rgb::alt::GrayAlpha">GrayAlpha</a>&lt;T, A&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#189-196' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGBA%3CT%2C%20T%3E%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, T&gt;&gt; for <a class="struct" href="../rgb/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a>&lt;T&gt;</code><a href='#impl-From%3CRGBA%3CT%2C%20T%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#209-218' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-12' class="method hidden"><code id='from.v-12'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#210-217' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CBGRA%3CT%2C%20T%3E%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a>&lt;T, T&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-From%3CBGRA%3CT%2C%20T%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#230-239' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-13' class="method hidden"><code id='from.v-13'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#231-238' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGB%3CT%3E%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, u8&gt;</code><a href='#impl-From%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#137-146' title='goto source code'>[src]</a></h3><div class='docblock'><p>Assumes 255 is opaque</p>
</div><div class='impl-items'><h4 id='method.from-14' class="method hidden"><code id='from.v-14'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#138-145' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CRGB%3CT%3E%3E-1' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, u16&gt;</code><a href='#impl-From%3CRGB%3CT%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#161-170' title='goto source code'>[src]</a></h3><div class='docblock'><p>Assumes 65535 is opaque</p>
</div><div class='impl-items'><h4 id='method.from-15' class="method hidden"><code id='from.v-15'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#162-169' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CBGR%3CT%3E%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a>&lt;T&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, u8&gt;</code><a href='#impl-From%3CBGR%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#149-158' title='goto source code'>[src]</a></h3><div class='docblock'><p>Assumes 255 is opaque</p>
</div><div class='impl-items'><h4 id='method.from-16' class="method hidden"><code id='from.v-16'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#150-157' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3CBGR%3CT%3E%3E-1' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a>&lt;T&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, u16&gt;</code><a href='#impl-From%3CBGR%3CT%3E%3E-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#173-182' title='goto source code'>[src]</a></h3><div class='docblock'><p>Assumes 255 is opaque</p>
</div><div class='impl-items'><h4 id='method.from-17' class="method hidden"><code id='from.v-17'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(other: <a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a>&lt;T&gt;) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#174-181' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-PartialEq%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-PartialEq%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.eq' class="method hidden"><code id='eq.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method hidden"><code id='ne.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-Eq' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Ord' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.cmp' class="method hidden"><code id='cmp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp' class='fnname'>cmp</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a></code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an <code>Ordering</code> between <code>self</code> and <code>other</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#tymethod.cmp">Read more</a></p>
</div><h4 id='method.max' class="method hidden"><code id='max.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max' class='fnname'>max</a>(self, other: Self) -&gt; Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#563-566' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the maximum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.max">Read more</a></p>
</div><h4 id='method.min' class="method hidden"><code id='min.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min' class='fnname'>min</a>(self, other: Self) -&gt; Self</code><span class='since' title='Stable since Rust version 1.21.0'>1.21.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#580-583' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Compares and returns the minimum of two values. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.min">Read more</a></p>
</div><h4 id='method.clamp' class="method hidden"><code id='clamp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp' class='fnname'>clamp</a>(self, min: Self, max: Self) -&gt; Self</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/cmp.rs.html#604-614' title='goto source code'>[src]</a></h4><div class='stability hidden'><div class='stab unstable'><span class='emoji'>🔬</span> This is a nightly-only experimental API. (<code>clamp</code>)</div></div><div class='docblock hidden'><p>Restrict a value to a certain interval. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#method.clamp">Read more</a></p>
</div></div><h3 id='impl-PartialOrd%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-PartialOrd%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.partial_cmp' class="method hidden"><code id='partial_cmp.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id='method.lt' class="method hidden"><code id='lt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id='method.le' class="method hidden"><code id='le.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id='method.gt' class="method hidden"><code id='gt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div><h4 id='method.ge' class="method hidden"><code id='ge.v'>fn <a href='https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&amp;self, other: &amp;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;) -&gt; bool</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code> operator. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div></div><h3 id='impl-Hash' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Hash' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.hash' class="method hidden"><code id='hash.v'>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash' class='fnname'>hash</a>&lt;__H:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>&gt;(&amp;self, state: &amp;mut __H)</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Feeds this value into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#tymethod.hash">Read more</a></p>
</div><h4 id='method.hash_slice' class="method hidden"><code id='hash_slice.v'>fn <a href='https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice' class='fnname'>hash_slice</a>&lt;H&gt;(data: &amp;[Self], state: &amp;mut H) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>,&nbsp;</span></code><span class='since' title='Stable since Rust version 1.3.0'>1.3.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/hash/mod.rs.html#192-198' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Feeds a slice of this type into the given [<code>Hasher</code>]. <a href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html#method.hash_slice">Read more</a></p>
2019-09-16 15:53:39 -07:00
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'></div><h3 id='impl-Debug' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt' class="method hidden"><code id='fmt.v'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Display' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#204-208' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-1' class="method hidden"><code id='fmt.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#205-207' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
2019-09-06 15:57:44 -07:00
</div></div><h3 id='impl-Add%3CRGBA%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>, A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-Add%3CRGBA%3CT%2C%20A%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#106-118' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px + px</code></p>
</div><div class='impl-items'><h4 id='associatedtype.Output' class="type"><code id='Output.t'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;&lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a>, &lt;A as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a>&gt;</code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add' class="method hidden"><code id='add.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></code><a class='srclink' href='../src/rgb/internal/ops.rs.html#110-117' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt;,&nbsp;</span></code><a href='#impl-Add%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#190-199' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px + 1</code></p>
</div><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><code id='Output.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code></h4><div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-1' class="method hidden"><code id='add.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, r: T) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html#associatedtype.Output" title="type core::ops::arith::Add::Output">Output</a></code><a class='srclink' href='../src/rgb/internal/ops.rs.html#196-198' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Sub%3CRGBA%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl&lt;T:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>, A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-Sub%3CRGBA%3CT%2C%20A%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#135-147' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px - px</code></p>
</div><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><code id='Output.t-2'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;&lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a>, &lt;A as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a>&gt;</code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub' class="method hidden"><code id='sub.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></code><a class='srclink' href='../src/rgb/internal/ops.rs.html#139-146' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>,&nbsp;</span></code><a href='#impl-Sub%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#167-176' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px - 1</code>
Works only if alpha channel has same depth as RGB channels</p>
</div><div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><code id='Output.t-3'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;&lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a>, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a>&gt;</code></h4><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-1' class="method hidden"><code id='sub.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, r: T) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html#associatedtype.Output" title="type core::ops::arith::Sub::Output">Output</a></code><a class='srclink' href='../src/rgb/internal/ops.rs.html#173-175' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Mul%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;Output = T&gt;,&nbsp;</span></code><a href='#impl-Mul%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#234-243' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px * 1</code></p>
</div><div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><code id='Output.t-4'>type <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code></h4><div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul' class="method hidden"><code id='mul.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, r: T) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html#associatedtype.Output" title="type core::ops::arith::Mul::Output">Output</a></code><a class='srclink' href='../src/rgb/internal/ops.rs.html#240-242' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-AddAssign%3CRGBA%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = A&gt;,&nbsp;</span></code><a href='#impl-AddAssign%3CRGBA%3CT%2C%20A%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#120-132' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.add_assign' class="method hidden"><code id='add_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html#tymethod.add_assign' class='fnname'>add_assign</a>(&amp;mut self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#124-131' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+=</code> operation.</p>
</div></div><h3 id='impl-AddAssign%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;Output = T&gt;,&nbsp;</span></code><a href='#impl-AddAssign%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#202-209' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px + 1</code></p>
</div><div class='impl-items'><h4 id='method.add_assign-1' class="method hidden"><code id='add_assign.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html#tymethod.add_assign' class='fnname'>add_assign</a>(&amp;mut self, r: T)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#206-208' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+=</code> operation.</p>
</div></div><h3 id='impl-SubAssign%3CRGBA%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;Output = T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;Output = A&gt;,&nbsp;</span></code><a href='#impl-SubAssign%3CRGBA%3CT%2C%20A%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#150-163' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px - px</code></p>
</div><div class='impl-items'><h4 id='method.sub_assign' class="method hidden"><code id='sub_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign' class='fnname'>sub_assign</a>(&amp;mut self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#155-162' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-=</code> operation.</p>
</div></div><h3 id='impl-SubAssign%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a>&lt;Output = T&gt;,&nbsp;</span></code><a href='#impl-SubAssign%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#180-187' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px - 1</code>
Works only if alpha channel has same depth as RGB channels</p>
</div><div class='impl-items'><h4 id='method.sub_assign-1' class="method hidden"><code id='sub_assign.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html#tymethod.sub_assign' class='fnname'>sub_assign</a>(&amp;mut self, r: T)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#184-186' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>-=</code> operation.</p>
</div></div><h3 id='impl-MulAssign%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a>&lt;Output = T&gt;,&nbsp;</span></code><a href='#impl-MulAssign%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#246-253' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px * 1</code></p>
</div><div class='impl-items'><h4 id='method.mul_assign' class="method hidden"><code id='mul_assign.v'>fn <a href='https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html#tymethod.mul_assign' class='fnname'>mul_assign</a>(&amp;mut self, r: T)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#250-252' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*=</code> operation.</p>
</div></div><h3 id='impl-FromIterator%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;T&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-FromIterator%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgba.rs.html#186-199' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from_iter' class="method"><code id='from_iter.v'>fn <a href='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter' class='fnname'>from_iter</a>&lt;I:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = T&gt;&gt;(into_iter: I) -&gt; Self</code><a class='srclink' href='../src/rgb/internal/rgba.rs.html#190-198' title='goto source code'>[src]</a></h4><div class='docblock'><p>Takes exactly 4 elements from the iterator and creates a new instance.
Panics if there are fewer elements in the iterator.</p>
</div></div><h3 id='impl-AsRef%3C%5BT%5D%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;[T]&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-AsRef%3C%5BT%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#253-257' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_ref' class="method hidden"><code id='as_ref.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html#tymethod.as_ref' class='fnname'>as_ref</a>(&amp;self) -&gt; &amp;[T]</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#254-256' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-AsMut%3C%5BT%5D%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a>&lt;[T]&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-AsMut%3C%5BT%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#278-282' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.as_mut' class="method hidden"><code id='as_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html#tymethod.as_mut' class='fnname'>as_mut</a>(&amp;mut self) -&gt; &amp;mut [T]</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#279-281' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into%3C%5BT%3B%204%5D%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;[T; 4]&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T&gt;</code><a href='#impl-Into%3C%5BT%3B%204%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#34-39' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into' class="method hidden"><code id='into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; [T; 4]</code><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#36-38' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into%3C(T%2C%20T%2C%20T%2C%20A)%3E' class='impl'><code class='in-band'>impl&lt;T, A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;(T, T, T, A)&gt; for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;T, A&gt;</code><a href='#impl-Into%3C(T%2C%20T%2C%20T%2C%20A)%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#37-42' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into-1' class="method hidden"><code id='into.v-1'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; (T, T, T, A)</code><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#39-41' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
2019-09-16 15:53:39 -07:00
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.clone' class="method hidden"><code id='clone.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
2019-09-06 15:57:44 -07:00
</div><h4 id='method.clone_from' class="method hidden"><code id='clone_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: &amp;Self)</code><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/clone.rs.html#131-133' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-Default' class='impl'><code class='in-band'>impl&lt;ComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>, AlphaComponentType:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.default' class="method hidden"><code id='default.v'>fn <a href='https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt;</code><a class='srclink' href='../src/rgb/lib.rs.html#72' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Returns the &quot;default value&quot; for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
2019-09-16 15:53:39 -07:00
</div></div></div><h2 id='synthetic-implementations' class='small-section-header'>Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a></h2><div id='synthetic-implementations-list'><h3 id='impl-Send' class='impl'><code class='in-band'>impl&lt;ComponentType, AlphaComponentType&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-Send' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><code class='in-band'>impl&lt;ComponentType, AlphaComponentType&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-Sync' class='anchor'></a></h3><div class='impl-items'></div><h3 id='impl-Unpin' class='impl'><code class='in-band'>impl&lt;ComponentType, AlphaComponentType&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a>&lt;ComponentType, AlphaComponentType&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href='#impl-Unpin' class='anchor'></a></h3><div class='impl-items'></div></div><h2 id='blanket-implementations' class='small-section-header'>Blanket Implementations<a href='#blanket-implementations' class='anchor'></a></h2><div id='blanket-implementations-list'><h3 id='impl-From%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href='#impl-From%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#552-554' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.from-18' class="method hidden"><code id='from.v-18'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(t: T) -&gt; T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#553' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
2019-09-06 15:57:44 -07:00
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryFrom%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error' class="type"><code id='Error.t'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error' class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_from' class="method hidden"><code id='try_from.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from' class='fnname'>try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Into%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-Into%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#543-548' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.into-2' class="method hidden"><code id='into.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into' class='fnname'>into</a>(self) -&gt; U</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#545-547' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-TryInto%3CU%3E' class='impl'><code class='in-band'>impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href='#impl-TryInto%3CU%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Error-1' class="type"><code id='Error.t-1'>type <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error' class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id='method.try_into' class="method hidden"><code id='try_into.v'>fn <a href='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into' class='fnname'>try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Borrow%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Borrow%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow' class="method hidden"><code id='borrow.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow' class='fnname'>borrow</a>(&amp;self) -&gt; &amp;T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id='impl-BorrowMut%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-BorrowMut%3CT%3E' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.borrow_mut' class="method hidden"><code id='borrow_mut.v'>fn <a href='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut' class='fnname'>borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id='impl-Any' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href='#impl-Any' class='anchor'></a><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.type_id' class="method hidden"><code id='type_id.v'>fn <a href='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id' class='fnname'>type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class='srclink' href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "rgb";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>