rusty_snek_gaem/target/doc/image/trait.Pixel.html
2018-10-28 21:14:05 -05:00

83 lines
46 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `Pixel` trait in crate `image`."><meta name="keywords" content="rust, rustlang, rust-lang, Pixel"><title>image::Pixel - 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></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><p class='location'>Trait Pixel</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Subpixel">Subpixel</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.channel_count">channel_count</a><a href="#tymethod.channels">channels</a><a href="#tymethod.channels_mut">channels_mut</a><a href="#tymethod.color_model">color_model</a><a href="#tymethod.color_type">color_type</a><a href="#tymethod.channels4">channels4</a><a href="#tymethod.from_channels">from_channels</a><a href="#tymethod.from_slice">from_slice</a><a href="#tymethod.from_slice_mut">from_slice_mut</a><a href="#tymethod.to_rgb">to_rgb</a><a href="#tymethod.to_rgba">to_rgba</a><a href="#tymethod.to_luma">to_luma</a><a href="#tymethod.to_luma_alpha">to_luma_alpha</a><a href="#tymethod.to_bgr">to_bgr</a><a href="#tymethod.to_bgra">to_bgra</a><a href="#tymethod.map">map</a><a href="#tymethod.apply">apply</a><a href="#tymethod.map_with_alpha">map_with_alpha</a><a href="#tymethod.apply_with_alpha">apply_with_alpha</a><a href="#tymethod.map2">map2</a><a href="#tymethod.apply2">apply2</a><a href="#tymethod.invert">invert</a><a href="#tymethod.blend">blend</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>image</a></p><script>window.sidebarCurrent = {name: 'Pixel', ty: 'trait', 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"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press S to search, ? for more options…" type="search"><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='in-band'>Trait <a href='index.html'>image</a>::<wbr><a class="trait" href=''>Pixel</a></span><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'>&#x2212;</span>]</a></span><a class='srclink' href='../src/image/buffer.rs.html#17-132' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait Pixel: <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/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> {
type <a href='#associatedtype.Subpixel' class="type">Subpixel</a>: <a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a>;
fn <a href='#tymethod.channel_count' class='fnname'>channel_count</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.channels' class='fnname'>channels</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.channels_mut' class='fnname'>channels_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.color_model' class='fnname'>color_model</a>() -&gt; &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.color_type' class='fnname'>color_type</a>() -&gt; <a class="enum" href="../image/enum.ColorType.html" title="enum image::ColorType">ColorType</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.channels4' class='fnname'>channels4</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.from_channels' class='fnname'>from_channels</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;a: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;b: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;d: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_slice' class='fnname'>from_slice</a>(slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_slice_mut' class='fnname'>from_slice_mut</a>(slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self;
<div class='item-spacer'></div> fn <a href='#tymethod.to_rgb' class='fnname'>to_rgb</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.to_rgba' class='fnname'>to_rgba</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.to_luma' class='fnname'>to_luma</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Luma.html" title="struct image::Luma">Luma</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.to_luma_alpha' class='fnname'>to_luma_alpha</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.to_bgr' class='fnname'>to_bgr</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.to_bgra' class='fnname'>to_bgra</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;;
<div class='item-spacer'></div> fn <a href='#tymethod.map' class='fnname'>map</a>&lt;F&gt;(&amp;self, f: F) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.apply' class='fnname'>apply</a>&lt;F&gt;(&amp;mut self, f: F)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.map_with_alpha' class='fnname'>map_with_alpha</a>&lt;F, G&gt;(&amp;self, f: F, g: G) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.apply_with_alpha' class='fnname'>apply_with_alpha</a>&lt;F, G&gt;(&amp;mut self, f: F, g: G)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.map2' class='fnname'>map2</a>&lt;F&gt;(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, f: F) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.apply2' class='fnname'>apply2</a>&lt;F&gt;(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, f: F)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a></span>;
<div class='item-spacer'></div> fn <a href='#tymethod.invert' class='fnname'>invert</a>(&amp;mut self);
<div class='item-spacer'></div> fn <a href='#tymethod.blend' class='fnname'>blend</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self);
}</pre></div><div class='docblock'><p>A generalized pixel.</p>
<p>A pixel object is usually not used standalone but as a view into an image buffer.</p>
</div>
<h2 id='associated-types' class='small-section-header'>
Associated Types<a href='#associated-types' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='associatedtype.Subpixel' class='method'><span id='Subpixel.t' class='invisible'><code>type <a href='#associatedtype.Subpixel' class="type">Subpixel</a>: <a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a></code></span></h3><div class='docblock'><p>The underlying subpixel type.</p>
</div></div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.channel_count' class='method'><span id='channel_count.v' class='invisible'><code>fn <a href='#tymethod.channel_count' class='fnname'>channel_count</a>() -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span></h3><div class='docblock'><p>Returns the number of channels of this pixel type.</p>
</div><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></h3><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></code></div></div><h3 id='tymethod.channels' class='method'><span id='channels.v' class='invisible'><code>fn <a href='#tymethod.channels' class='fnname'>channels</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></span></h3><div class='docblock'><p>Returns the components as a slice.</p>
</div><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></h3><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a mut [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;'a [</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></span></code></div></div><h3 id='tymethod.channels_mut' class='method'><span id='channels_mut.v' class='invisible'><code>fn <a href='#tymethod.channels_mut' class='fnname'>channels_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code></span></h3><div class='docblock'><p>Returns the components as a mutable slice</p>
</div><h3 id='tymethod.color_model' class='method'><span id='color_model.v' class='invisible'><code>fn <a href='#tymethod.color_model' class='fnname'>color_model</a>() -&gt; &amp;'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></h3><div class='docblock'><p>Returns a string that can help to interpret the meaning each channel
See <a href="http://gegl.org/babl/">gimp babl</a>.</p>
</div><h3 id='tymethod.color_type' class='method'><span id='color_type.v' class='invisible'><code>fn <a href='#tymethod.color_type' class='fnname'>color_type</a>() -&gt; <a class="enum" href="../image/enum.ColorType.html" title="enum image::ColorType">ColorType</a></code></span></h3><div class='docblock'><p>Returns the ColorType for this pixel format</p>
</div><h3 id='tymethod.channels4' class='method'><span id='channels4.v' class='invisible'><code>fn <a href='#tymethod.channels4' class='fnname'>channels4</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self<br>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h3><div class='docblock'><p>Returns the channels of this pixel as a 4 tuple. If the pixel
has less than 4 channels the remainder is filled with the maximum value</p>
<p>TODO deprecate</p>
</div><h3 id='tymethod.from_channels' class='method'><span id='from_channels.v' class='invisible'><code>fn <a href='#tymethod.from_channels' class='fnname'>from_channels</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;a: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;b: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;c: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;d: Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><br>) -&gt; Self</code></span></h3><div class='docblock'><p>Construct a pixel from the 4 channels a, b, c and d.
If the pixel does not contain 4 channels the extra are ignored.</p>
<p>TODO deprecate</p>
</div><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><h3 id='tymethod.from_slice' class='method'><span id='from_slice.v' class='invisible'><code>fn <a href='#tymethod.from_slice' class='fnname'>from_slice</a>(slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;[</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self</code></span></h3><div class='docblock'><p>Returns a view into a slice.</p>
<p>Note: The slice length is not checked on creation. Thus the caller has to ensure
that the slice is long enough to present panics if the pixel is used later on.</p>
</div><div class="important-traits"><div class='tooltip'><span class='tooltiptext'>Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W</span></div><div class="content hidden"><h3 class="important">Important traits for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W</h3><code class="content"><span class="where fmt-newline">impl&lt;'a, W&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>W <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, R&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Read.html" title="trait std::io::Read">Read</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline">impl&lt;'a, I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a mut </a>I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href='https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>;</span></code></div></div><h3 id='tymethod.from_slice_mut' class='method'><span id='from_slice_mut.v' class='invisible'><code>fn <a href='#tymethod.from_slice_mut' class='fnname'>from_slice_mut</a>(slice: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&amp;mut [</a>Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>Self</code></span></h3><div class='docblock'><p>Returns mutable view into a mutable slice.</p>
<p>Note: The slice length is not checked on creation. Thus the caller has to ensure
that the slice is long enough to present panics if the pixel is used later on.</p>
</div><h3 id='tymethod.to_rgb' class='method'><span id='to_rgb.v' class='invisible'><code>fn <a href='#tymethod.to_rgb' class='fnname'>to_rgb</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to RGB</p>
</div><h3 id='tymethod.to_rgba' class='method'><span id='to_rgba.v' class='invisible'><code>fn <a href='#tymethod.to_rgba' class='fnname'>to_rgba</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to RGB with an alpha channel</p>
</div><h3 id='tymethod.to_luma' class='method'><span id='to_luma.v' class='invisible'><code>fn <a href='#tymethod.to_luma' class='fnname'>to_luma</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Luma.html" title="struct image::Luma">Luma</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to luma</p>
</div><h3 id='tymethod.to_luma_alpha' class='method'><span id='to_luma_alpha.v' class='invisible'><code>fn <a href='#tymethod.to_luma_alpha' class='fnname'>to_luma_alpha</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to luma with an alpha channel</p>
</div><h3 id='tymethod.to_bgr' class='method'><span id='to_bgr.v' class='invisible'><code>fn <a href='#tymethod.to_bgr' class='fnname'>to_bgr</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to BGR</p>
</div><h3 id='tymethod.to_bgra' class='method'><span id='to_bgra.v' class='invisible'><code>fn <a href='#tymethod.to_bgra' class='fnname'>to_bgra</a>(&amp;self) -&gt; <a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>&gt;</code></span></h3><div class='docblock'><p>Convert this pixel to BGR with an alpha channel</p>
</div><h3 id='tymethod.map' class='method'><span id='map.v' class='invisible'><code>fn <a href='#tymethod.map' class='fnname'>map</a>&lt;F&gt;(&amp;self, f: F) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel of this pixel.</p>
</div><h3 id='tymethod.apply' class='method'><span id='apply.v' class='invisible'><code>fn <a href='#tymethod.apply' class='fnname'>apply</a>&lt;F&gt;(&amp;mut self, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel of this pixel.</p>
</div><h3 id='tymethod.map_with_alpha' class='method'><span id='map_with_alpha.v' class='invisible'><code>fn <a href='#tymethod.map_with_alpha' class='fnname'>map_with_alpha</a>&lt;F, G&gt;(&amp;self, f: F, g: G) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel except the alpha channel.
Apply the function <code>g</code> to the alpha channel.</p>
</div><h3 id='tymethod.apply_with_alpha' class='method'><span id='apply_with_alpha.v' class='invisible'><code>fn <a href='#tymethod.apply_with_alpha' class='fnname'>apply_with_alpha</a>&lt;F, G&gt;(&amp;mut self, f: F, g: G) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel except the alpha channel.
Apply the function <code>g</code> to the alpha channel. Works in-place.</p>
</div><h3 id='tymethod.map2' class='method'><span id='map2.v' class='invisible'><code>fn <a href='#tymethod.map2' class='fnname'>map2</a>&lt;F&gt;(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, f: F) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel of this pixel and
<code>other</code> pairwise.</p>
</div><h3 id='tymethod.apply2' class='method'><span id='apply2.v' class='invisible'><code>fn <a href='#tymethod.apply2' class='fnname'>apply2</a>&lt;F&gt;(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>, Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>) -&gt; Self::<a class="type" href="../image/trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>,&nbsp;</span></code></span></h3><div class='docblock'><p>Apply the function <code>f</code> to each channel of this pixel and
<code>other</code> pairwise. Works in-place.</p>
</div><h3 id='tymethod.invert' class='method'><span id='invert.v' class='invisible'><code>fn <a href='#tymethod.invert' class='fnname'>invert</a>(&amp;mut self)</code></span></h3><div class='docblock'><p>Invert this pixel</p>
</div><h3 id='tymethod.blend' class='method'><span id='blend.v' class='invisible'><code>fn <a href='#tymethod.blend' class='fnname'>blend</a>(&amp;mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self)</code></span></h3><div class='docblock'><p>Blend the color of a given pixel into ourself, taking into account alpha channels</p>
</div></div><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><ul class='item-list' id='implementors-list'><li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.Rgb.html" title="struct image::Rgb">Rgb</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.Bgr.html" title="struct image::Bgr">Bgr</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.Luma.html" title="struct image::Luma">Luma</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.Rgba.html" title="struct image::Rgba">Rgba</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.Bgra.html" title="struct image::Bgra">Bgra</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
<li><table class='table-display'><tbody><tr><td><code>impl&lt;T:&nbsp;<a class="trait" href="../image/trait.Primitive.html" title="trait image::Primitive">Primitive</a> + 'static&gt; Pixel for <a class="struct" href="../image/struct.LumaA.html" title="struct image::LumaA">LumaA</a>&lt;T&gt;<span class="where fmt-newline"> type <a href='#associatedtype.Subpixel' class="type">Subpixel</a> = T;</span></code><td><div class='out-of-band'><a class='srclink' href='../src/image/color.rs.html#79-205' title='goto source code'>[src]</a></div></td></tr></tbody></table></li>
</ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../implementors/image/trait.Pixel.js">
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "image";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>