mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
115 lines
98 KiB
HTML
115 lines
98 KiB
HTML
<!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">☰</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<RGBA<T, A>></a><a href="#impl-Add%3CT%3E">Add<T></a><a href="#impl-AddAssign%3CRGBA%3CT%2C%20A%3E%3E">AddAssign<RGBA<T, A>></a><a href="#impl-AddAssign%3CT%3E">AddAssign<T></a><a href="#impl-AsMut%3C%5BT%5D%3E">AsMut<[T]></a><a href="#impl-AsPixels%3CRGBA%3CT%2C%20T%3E%3E">AsPixels<RGBA<T, T>></a><a href="#impl-AsRef%3C%5BT%5D%3E">AsRef<[T]></a><a href="#impl-Clone">Clone</a><a href="#impl-ComponentMap%3CRGBA%3CB%2C%20B%3E%2C%20T%2C%20B%3E">ComponentMap<RGBA<B, B>, T, B></a><a href="#impl-ComponentSlice%3CT%3E">ComponentSlice<T></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<[T; 4]></a><a href="#impl-From%3C(T%2C%20T%2C%20T%2C%20A)%3E">From<(T, T, T, A)></a><a href="#impl-From%3CBGR%3CT%3E%3E">From<BGR<T>></a><a href="#impl-From%3CBGRA%3CT%2C%20T%3E%3E">From<BGRA<T, T>></a><a href="#impl-From%3CGrayAlpha%3CT%2C%20A%3E%3E">From<GrayAlpha<T, A>></a><a href="#impl-From%3CRGB%3CT%3E%3E">From<RGB<T>></a><a href="#impl-From%3CRGBA%3CT%2C%20T%3E%3E">From<RGBA<T, T>></a><a href="#impl-From%3CRGBA%3Cf32%2C%20f32%3E%3E">From<RGBA<f32, f32>></a><a href="#impl-From%3CRGBA%3Ci16%2C%20i16%3E%3E">From<RGBA<i16, i16>></a><a href="#impl-From%3CRGBA%3Ci32%2C%20i32%3E%3E">From<RGBA<i32, i32>></a><a href="#impl-From%3CRGBA%3Cu16%2C%20u16%3E%3E">From<RGBA<u16, u16>></a><a href="#impl-From%3CRGBA%3Cu8%2C%20u8%3E%3E">From<RGBA<u8, u8>></a><a href="#impl-FromIterator%3CT%3E">FromIterator<T></a><a href="#impl-Hash">Hash</a><a href="#impl-Into%3C%5BT%3B%204%5D%3E">Into<[T; 4]></a><a href="#impl-Into%3C(T%2C%20T%2C%20T%2C%20A)%3E">Into<(T, T, T, A)></a><a href="#impl-Mul%3CT%3E">Mul<T></a><a href="#impl-MulAssign%3CT%3E">MulAssign<T></a><a href="#impl-Ord">Ord</a><a href="#impl-PartialEq%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E">PartialEq<RGBA<ComponentType, AlphaComponentType>></a><a href="#impl-PartialOrd%3CRGBA%3CComponentType%2C%20AlphaComponentType%3E%3E">PartialOrd<RGBA<ComponentType, AlphaComponentType>></a><a href="#impl-Sub%3CRGBA%3CT%2C%20A%3E%3E">Sub<RGBA<T, A>></a><a href="#impl-Sub%3CT%3E">Sub<T></a><a href="#impl-SubAssign%3CRGBA%3CT%2C%20A%3E%3E">SubAssign<RGBA<T, A>></a><a href="#impl-SubAssign%3CT%3E">SubAssign<T></a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow<T></a><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a><a href="#impl-From%3CT%3E">From<T></a><a href="#impl-Into%3CU%3E">Into<U></a><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a><a href="#impl-TryInto%3CU%3E">TryInto<U></a></div></div><p class='location'><a href='index.html'>rgb</a></p><script>window.sidebarCurrent = {name: 'RGBA', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>−</span>]</a></span><a class='srclink' href='../src/rgb/lib.rs.html#80-89' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>rgb</a>::<wbr><a class="struct" href=''>RGBA</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust struct'><span class="docblock attributes top-attr">#[repr(C)]
|
||
</span>pub struct RGBA<ComponentType, AlphaComponentType = ComponentType> {
|
||
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<LinearLight<u16>, u16></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<T> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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) -> 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<T, A> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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) -> 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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/struct.Cloned.html" title="struct core::iter::adapters::Cloned">Cloned</a><<a class="struct" href="https://doc.rust-lang.org/nightly/core/slice/struct.Iter.html" title="struct core::slice::Iter">Iter</a><T>></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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, A> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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>(&self) -> <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></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<T, A> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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>(&mut self) -> &mut <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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><F, U, B>(&self, f: F) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><U, B> <span class="where fmt-newline">where<br> 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) -> U,<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,<br> B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><A> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, </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>(&self, a: A) -> 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><F, B>(&self, f: F) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, B> <span class="where fmt-newline">where<br> 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) -> B, </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<T> <a class="trait" href="../rgb/trait.AsPixels.html" title="trait rgb::AsPixels">AsPixels</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, T>> 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>(&self) -> &[<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T>]</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>(&mut self) -> &mut [<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T>]</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<T> <a class="trait" href="../rgb/trait.ComponentSlice.html" title="trait rgb::ComponentSlice">ComponentSlice</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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>(&self) -> &[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>(&mut self) -> &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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, B> <a class="trait" href="../rgb/trait.ComponentMap.html" title="trait rgb::ComponentMap">ComponentMap</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><B, B>, T, B> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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><F>(&self, f: F) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><B> <span class="where fmt-newline">where<br> 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) -> B, </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<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/convert/trait.From.html" title="trait core::convert::From">From</a><[T; 4]> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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]) -> 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<T, A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><(T, T, T, A)> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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)) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><u16, u16>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><i32></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><u16>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><u8, u8>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f32></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><u8>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><u8, u8>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f64></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><u8>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><u16, u16>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f32></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><u16>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><u16, u16>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f64></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><u16>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><i16, i16>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f32></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><i16>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><i16, i16>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f64></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><i16>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><i32, i32>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f64></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><i32>) -> 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><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f32, f32>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><f64></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><f32>) -> 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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/alt/struct.GrayAlpha.html" title="struct rgb::alt::GrayAlpha">GrayAlpha</a><T, A>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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><T, A>) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, T>> for <a class="struct" href="../rgb/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a><T></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><T>) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a><T, T>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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><T>) -> 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<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/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, u8></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><T>) -> 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<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/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, u16></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><T>) -> 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<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/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a><T>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, u8></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><T>) -> 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<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/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="struct" href="../rgb/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a><T>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, u16></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><T>) -> 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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType></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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>> <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><ComponentType, AlphaComponentType></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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>> <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><ComponentType, AlphaComponentType></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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> <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) -> 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) -> 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) -> 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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType></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> &self, <br> other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType><br>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<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 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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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><</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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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><=</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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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>></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>(&self, other: &<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType>) -> 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>>=</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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a>> <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><ComponentType, AlphaComponentType></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><__H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>>(&self, state: &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><H>(data: &[Self], state: &mut H) <span class="where fmt-newline">where<br> H: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hasher.html" title="trait core::hash::Hasher">Hasher</a>, </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>
|
||
</div></div><h3 id='impl-Copy' class='impl'><code class='in-band'>impl<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, AlphaComponentType: <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/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><ComponentType, AlphaComponentType></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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>> <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><ComponentType, AlphaComponentType></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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>> <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><T, A></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>(&self, f: &mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>) -> <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>
|
||
</div></div><h3 id='impl-Add%3CRGBA%3CT%2C%20A%3E%3E' class='impl'><code class='in-band'>impl<T: <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: <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 class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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><<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>>::<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>, <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>>::<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></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><T, A>) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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><Output = T>, </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><T></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) -> 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<T: <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: <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 class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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><<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>>::<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>, <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>>::<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></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><T, A>) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Sub.html" title="trait core::ops::arith::Sub">Sub</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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>, </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><<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>>::<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>, <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>>::<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></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) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Mul.html" title="trait core::ops::arith::Mul">Mul</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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><Output = T>, </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><T></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) -> 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<T, A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A> <span class="where fmt-newline">where<br> 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><Output = T>,<br> 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><Output = A>, </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>(&mut self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>)</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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.AddAssign.html" title="trait core::ops::arith::AddAssign">AddAssign</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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><Output = T>, </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>(&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<T, A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><<a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A> <span class="where fmt-newline">where<br> 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><Output = T>,<br> 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><Output = A>, </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>(&mut self, other: <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A>)</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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.SubAssign.html" title="trait core::ops::arith::SubAssign">SubAssign</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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><Output = T>, </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>(&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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.MulAssign.html" title="trait core::ops::arith::MulAssign">MulAssign</a><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T> <span class="where fmt-newline">where<br> 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><Output = T>, </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>(&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<T> <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><T> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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><I: <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><Item = T>>(into_iter: I) -> 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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[T]> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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>(&self) -> &[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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><[T]> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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>(&mut self) -> &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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><[T; 4]> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></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) -> [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<T, A> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><(T, T, T, A)> for <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></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) -> (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>
|
||
</div></div><h3 id='impl-Clone' class='impl'><code class='in-band'>impl<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>> <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><ComponentType, AlphaComponentType></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>(&self) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType></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>
|
||
</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>(&mut self, source: &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<ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>, AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a>> <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><ComponentType, AlphaComponentType></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>() -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><ComponentType, AlphaComponentType></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 "default value" for a type. <a href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html#tymethod.default">Read more</a></p>
|
||
</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<ComponentType, AlphaComponentType> <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><ComponentType, AlphaComponentType> <span class="where fmt-newline">where<br> AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </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<ComponentType, AlphaComponentType> <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><ComponentType, AlphaComponentType> <span class="where fmt-newline">where<br> AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </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<ComponentType, AlphaComponentType> <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><ComponentType, AlphaComponentType> <span class="where fmt-newline">where<br> AlphaComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> ComponentType: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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) -> 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>
|
||
</div></div><h3 id='impl-TryFrom%3CU%3E' class='impl'><code class='in-band'>impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<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><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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </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) -> 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<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </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> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<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) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<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><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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </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>(&self) -> &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<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </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>(&mut self) -> &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<T> <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> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </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>(&self) -> <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>⏎</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> |