mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 18:32:15 +00:00
103 lines
91 KiB
HTML
103 lines
91 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 `RGB` struct in crate `rgb`."><meta name="keywords" content="rust, rustlang, rust-lang, RGB"><title>rgb::RGB - 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 RGB</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></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.new">new</a><a href="#method.new_alpha">new_alpha</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Add%3CRGB%3CT%3E%3E">Add<RGB<T>></a><a href="#impl-Add%3CT%3E">Add<T></a><a href="#impl-AddAssign%3CRGB%3CT%3E%3E">AddAssign<RGB<T>></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%3CRGB%3CT%3E%3E">AsPixels<RGB<T>></a><a href="#impl-AsRef%3C%5BT%5D%3E">AsRef<[T]></a><a href="#impl-Clone">Clone</a><a href="#impl-ComponentMap%3CRGB%3CB%3E%2C%20T%2C%20B%3E">ComponentMap<RGB<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%203%5D%3E">From<[T; 3]></a><a href="#impl-From%3C(T%2C%20T%2C%20T)%3E">From<(T, T, T)></a><a href="#impl-From%3CBGR%3CT%3E%3E">From<BGR<T>></a><a href="#impl-From%3CGray%3CT%3E%3E">From<Gray<T>></a><a href="#impl-From%3CRGB%3CT%3E%3E">From<RGB<T>></a><a href="#impl-From%3CRGB%3Cf32%3E%3E">From<RGB<f32>></a><a href="#impl-From%3CRGB%3Ci16%3E%3E">From<RGB<i16>></a><a href="#impl-From%3CRGB%3Ci32%3E%3E">From<RGB<i32>></a><a href="#impl-From%3CRGB%3Cu16%3E%3E">From<RGB<u16>></a><a href="#impl-From%3CRGB%3Cu8%3E%3E">From<RGB<u8>></a><a href="#impl-FromIterator%3CT%3E">FromIterator<T></a><a href="#impl-Hash">Hash</a><a href="#impl-Into%3C%5BT%3B%203%5D%3E">Into<[T; 3]></a><a href="#impl-Into%3C(T%2C%20T%2C%20T)%3E">Into<(T, T, T)></a><a href="#impl-LowerHex">LowerHex</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%3CRGB%3CComponentType%3E%3E">PartialEq<RGB<ComponentType>></a><a href="#impl-PartialOrd%3CRGB%3CComponentType%3E%3E">PartialOrd<RGB<ComponentType>></a><a href="#impl-Sub%3CRGB%3CT%3E%3E">Sub<RGB<T>></a><a href="#impl-Sub%3CT%3E">Sub<T></a><a href="#impl-SubAssign%3CRGB%3CT%3E%3E">SubAssign<RGB<T>></a><a href="#impl-SubAssign%3CT%3E">SubAssign<T></a><a href="#impl-UpperHex">UpperHex</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: 'RGB', 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#61-68' title='goto source code'>[src]</a></span><span class='in-band'>Struct <a href='index.html'>rgb</a>::<wbr><a class="struct" href=''>RGB</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 RGB<ComponentType> {
|
||
pub r: ComponentType,
|
||
pub g: ComponentType,
|
||
pub b: ComponentType,
|
||
}</pre></div><div class='docblock'><p>The RGB pixel</p>
|
||
<p>The component type can be <code>u8</code> (aliased as <code>RGB8</code>), <code>u16</code> (aliased as <code>RGB16</code>),
|
||
or any other type (but simple copyable types are recommended.)</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><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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.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) -> Self</code><a class='srclink' href='../src/rgb/internal/rgb.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</p>
|
||
</div></div><h3 id='impl-1' 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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-1' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#19-47' 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/rgb.rs.html#22-24' title='goto source code'>[src]</a></h4><div class='docblock'><p>Iterate over color components (R, G, and B)</p>
|
||
</div><h4 id='method.alpha' class="method"><code id='alpha.v'>pub fn <a href='#method.alpha' class='fnname'>alpha</a>(&self, a: T) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T></code><a class='srclink' href='../src/rgb/internal/rgb.rs.html#28-35' title='goto source code'>[src]</a></h4><h4 id='method.new_alpha' class="method"><code id='new_alpha.v'>pub fn <a href='#method.new_alpha' class='fnname'>new_alpha</a><A>(&self, a: A) -> <a class="struct" href="../rgb/struct.RGBA.html" title="struct rgb::RGBA">RGBA</a><T, A></code><a class='srclink' href='../src/rgb/internal/rgb.rs.html#39-46' title='goto source code'>[src]</a></h4></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%3CRGB%3CT%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.RGB.html" title="struct rgb::RGB">RGB</a><T>> for [T]</code><a href='#impl-AsPixels%3CRGB%3CT%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.RGB.html" title="struct rgb::RGB">RGB</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.RGB.html" title="struct rgb::RGB">RGB</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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-ComponentSlice%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#61-75' 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/rgb.rs.html#63-67' 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/rgb.rs.html#70-74' title='goto source code'>[src]</a></h4></div><h3 id='impl-ComponentMap%3CRGB%3CB%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.RGB.html" title="struct rgb::RGB">RGB</a><B>, T, B> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-ComponentMap%3CRGB%3CB%3E%2C%20T%2C%20B%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#49-59' 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.RGB.html" title="struct rgb::RGB">RGB</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/rgb.rs.html#51-58' 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%203%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; 3]> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-From%3C%5BT%3B%203%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#4-13' 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; 3]) -> Self</code><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#6-12' 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)%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, T, T)> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-From%3C(T%2C%20T%2C%20T)%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#7-16' 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)) -> Self</code><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#9-15' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-From%3CRGB%3Cu8%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.RGB.html" title="struct rgb::RGB">RGB</a><u8>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><i16></code><a href='#impl-From%3CRGB%3Cu8%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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cu16%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.RGB.html" title="struct rgb::RGB">RGB</a><u16>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><i32></code><a href='#impl-From%3CRGB%3Cu16%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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cu8%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.RGB.html" title="struct rgb::RGB">RGB</a><u8>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f32></code><a href='#impl-From%3CRGB%3Cu8%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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cu8%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.RGB.html" title="struct rgb::RGB">RGB</a><u8>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f64></code><a href='#impl-From%3CRGB%3Cu8%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-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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cu16%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.RGB.html" title="struct rgb::RGB">RGB</a><u16>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f32></code><a href='#impl-From%3CRGB%3Cu16%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-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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cu16%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.RGB.html" title="struct rgb::RGB">RGB</a><u16>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f64></code><a href='#impl-From%3CRGB%3Cu16%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-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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Ci16%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.RGB.html" title="struct rgb::RGB">RGB</a><i16>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f32></code><a href='#impl-From%3CRGB%3Ci16%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-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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Ci16%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.RGB.html" title="struct rgb::RGB">RGB</a><i16>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f64></code><a href='#impl-From%3CRGB%3Ci16%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-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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Ci32%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.RGB.html" title="struct rgb::RGB">RGB</a><i32>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f64></code><a href='#impl-From%3CRGB%3Ci32%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.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3Cf32%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.RGB.html" title="struct rgb::RGB">RGB</a><f32>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><f64></code><a href='#impl-From%3CRGB%3Cf32%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-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/struct.RGB.html" title="struct rgb::RGB">RGB</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%3CGray%3CT%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 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.Gray.html" title="struct rgb::alt::Gray">Gray</a><T>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-From%3CGray%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#178-186' 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/alt/struct.Gray.html" title="struct rgb::alt::Gray">Gray</a><T>) -> Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#179-185' 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/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/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a><T></code><a href='#impl-From%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#199-207' 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/struct.RGB.html" title="struct rgb::RGB">RGB</a><T>) -> Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#200-206' 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/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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-From%3CBGR%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#220-228' title='goto source code'>[src]</a></h3><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/alt/struct.BGR.html" title="struct rgb::alt::BGR">BGR</a><T>) -> Self</code><a class='srclink' href='../src/rgb/internal/convert/mod.rs.html#221-227' 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, u8></code><a href='#impl-From%3CRGB%3CT%3E%3E-1' 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-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#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-2' 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/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a><T, u8></code><a href='#impl-From%3CRGB%3CT%3E%3E-2' 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/struct.RGB.html" title="struct rgb::RGB">RGB</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%3CRGB%3CT%3E%3E-3' 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-3' 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-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/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%3CRGB%3CT%3E%3E-4' 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/alt/struct.BGRA.html" title="struct rgb::alt::BGRA">BGRA</a><T, u16></code><a href='#impl-From%3CRGB%3CT%3E%3E-4' 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-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>(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#174-181' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-PartialEq%3CRGB%3CComponentType%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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-PartialEq%3CRGB%3CComponentType%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Eq' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Ord' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> <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#56' 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%3CRGB%3CComponentType%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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-PartialOrd%3CRGB%3CComponentType%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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>(&self, other: &<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> <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#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType>) -> bool</code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Hash' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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#56' 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-Add%3CRGB%3CT%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 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.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-Add%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#7-18' 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.RGB.html" title="struct rgb::RGB">RGB</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>></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.RGB.html" title="struct rgb::RGB">RGB</a><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#11-17' 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.RGB.html" title="struct rgb::RGB">RGB</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#84-93' 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.RGB.html" title="struct rgb::RGB">RGB</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#90-92' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+</code> operation.</p>
|
||
</div></div><h3 id='impl-Sub%3CRGB%3CT%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 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.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-Sub%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#34-45' 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.RGB.html" title="struct rgb::RGB">RGB</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' 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.RGB.html" title="struct rgb::RGB">RGB</a><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#38-44' 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.RGB.html" title="struct rgb::RGB">RGB</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-Sub%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#62-71' 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-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.RGB.html" title="struct rgb::RGB">RGB</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#68-70' 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.RGB.html" title="struct rgb::RGB">RGB</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#212-221' 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.RGB.html" title="struct rgb::RGB">RGB</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#218-220' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*</code> operation.</p>
|
||
</div></div><h3 id='impl-AddAssign%3CRGB%3CT%3E%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><<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T> <span class="where fmt-newline">where<br> 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><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></code><a href='#impl-AddAssign%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#21-31' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px + px</code></p>
|
||
</div><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.RGB.html" title="struct rgb::RGB">RGB</a><T>)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#24-30' 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.RGB.html" title="struct rgb::RGB">RGB</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#96-103' 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#100-102' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>+=</code> operation.</p>
|
||
</div></div><h3 id='impl-SubAssign%3CRGB%3CT%3E%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><<a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T>> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T> <span class="where fmt-newline">where<br> 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><Output = T> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>, </span></code><a href='#impl-SubAssign%3CRGB%3CT%3E%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/ops.rs.html#48-59' 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.RGB.html" title="struct rgb::RGB">RGB</a><T>)</code><a class='srclink' href='../src/rgb/internal/ops.rs.html#52-58' 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.RGB.html" title="struct rgb::RGB">RGB</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#74-81' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>px - 1</code></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#78-80' 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.RGB.html" title="struct rgb::RGB">RGB</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#224-231' 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#228-230' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the <code>*=</code> operation.</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 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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-Display' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#114-118' 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.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/rgb.rs.html#115-117' 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-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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Debug' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.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#56' 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-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.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-FromIterator%3CT%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#97-109' 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/rgb.rs.html#101-108' title='goto source code'>[src]</a></h4><div class='docblock'><p>Takes exactly 3 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.RGB.html" title="struct rgb::RGB">RGB</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#247-251' 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#248-250' 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.RGB.html" title="struct rgb::RGB">RGB</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#272-276' 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#273-275' 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%203%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; 3]> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-Into%3C%5BT%3B%203%5D%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#15-20' 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; 3]</code><a class='srclink' href='../src/rgb/internal/convert/array.rs.html#17-19' 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)%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, T, T)> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-Into%3C(T%2C%20T%2C%20T)%3E' class='anchor'></a><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#18-23' 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)</code><a class='srclink' href='../src/rgb/internal/convert/tuple.rs.html#20-22' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
|
||
</div></div><h3 id='impl-LowerHex' class='impl'><code class='in-band'>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.html" title="trait core::fmt::LowerHex">LowerHex</a> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-LowerHex' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#126-130' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-2' class="method hidden"><code id='fmt.v-2'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.LowerHex.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/rgb.rs.html#127-129' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</p>
|
||
</div></div><h3 id='impl-UpperHex' class='impl'><code class='in-band'>impl<T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a>> <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.html" title="trait core::fmt::UpperHex">UpperHex</a> for <a class="struct" href="../rgb/struct.RGB.html" title="struct rgb::RGB">RGB</a><T></code><a href='#impl-UpperHex' class='anchor'></a><a class='srclink' href='../src/rgb/internal/rgb.rs.html#120-124' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.fmt-3' class="method hidden"><code id='fmt.v-3'>fn <a href='https://doc.rust-lang.org/nightly/core/fmt/trait.UpperHex.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/rgb.rs.html#121-123' title='goto source code'>[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter.</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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Copy' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' title='goto source code'>[src]</a></h3><div class='impl-items'></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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Clone' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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>> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a href='#impl-Default' class='anchor'></a><a class='srclink' href='../src/rgb/lib.rs.html#56' 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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType></code><a class='srclink' href='../src/rgb/lib.rs.html#56' 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-Unpin' class='impl'><code class='in-band'>impl<ComponentType> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType> <span class="where fmt-newline">where<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><h3 id='impl-Send' class='impl'><code class='in-band'>impl<ComponentType> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType> <span class="where fmt-newline">where<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> <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.RGB.html" title="struct rgb::RGB">RGB</a><ComponentType> <span class="where fmt-newline">where<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></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-19' class="method hidden"><code id='from.v-19'>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> |