| <!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="A trait for manipulating images."><meta name="keywords" content="rust, rustlang, rust-lang, GenericImage"><title>GenericImage in image - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../image/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../image/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">GenericImage</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.InnerImage">InnerImage</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.blend_pixel">blend_pixel</a></li><li><a href="#tymethod.get_pixel_mut">get_pixel_mut</a></li><li><a href="#tymethod.inner_mut">inner_mut</a></li><li><a href="#tymethod.put_pixel">put_pixel</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.copy_from">copy_from</a></li><li><a href="#method.copy_within">copy_within</a></li><li><a href="#method.sub_image">sub_image</a></li><li><a href="#method.unsafe_put_pixel">unsafe_put_pixel</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In image</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="index.html">image</a>::<wbr><a class="trait" href="#">GenericImage</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/image/image.rs.html#806-936">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait GenericImage: <a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a> { |
| type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a>: <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a><Pixel = Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>>; |
| |
| fn <a href="#tymethod.get_pixel_mut" class="fnname">get_pixel_mut</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> &mut Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>; |
| <span class="item-spacer"></span> fn <a href="#tymethod.put_pixel" class="fnname">put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>); |
| <span class="item-spacer"></span> fn <a href="#tymethod.blend_pixel" class="fnname">blend_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>); |
| <span class="item-spacer"></span> fn <a href="#tymethod.inner_mut" class="fnname">inner_mut</a>(&mut self) -> &mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a>; |
| |
| unsafe fn <a href="#method.unsafe_put_pixel" class="fnname">unsafe_put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>) { ... } |
| <span class="item-spacer"></span> fn <a href="#method.copy_from" class="fnname">copy_from</a><O>(&mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>O, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><br> <span class="where">where<br> O: <a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a><Pixel = Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>></span>, |
| { ... } |
| <span class="item-spacer"></span> fn <a href="#method.copy_within" class="fnname">copy_within</a>(&mut self, source: <a class="struct" href="math/struct.Rect.html" title="struct image::math::Rect">Rect</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a> { ... } |
| <span class="item-spacer"></span> fn <a href="#method.sub_image" class="fnname">sub_image</a>(<br> &mut self,<br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br> ) -> <a class="struct" href="struct.SubImage.html" title="struct image::SubImage">SubImage</a><&mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a>> { ... } |
| }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A trait for manipulating images.</p> |
| </div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="associatedtype.InnerImage" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#810">source</a><h4 class="code-header">type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a>: <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a><Pixel = Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>></h4></section></summary><div class="docblock"><p>Underlying image type. This is mainly used by SubImages in order to |
| always have a reference to the original image. This allows for less |
| indirections and it eases the use of nested SubImages.</p> |
| </div></details></div><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.get_pixel_mut" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#817">source</a><h4 class="code-header">fn <a href="#tymethod.get_pixel_mut" class="fnname">get_pixel_mut</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> &mut Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a></h4></section></summary><div class="docblock"><p>Gets a reference to the mutable pixel at location <code>(x, y)</code>. Indexed from top left.</p> |
| <h5 id="panics"><a href="#panics">Panics</a></h5> |
| <p>Panics if <code>(x, y)</code> is out of bounds.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.put_pixel" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#824">source</a><h4 class="code-header">fn <a href="#tymethod.put_pixel" class="fnname">put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>)</h4></section></summary><div class="docblock"><p>Put a pixel at location (x, y). Indexed from top left.</p> |
| <h5 id="panics-1"><a href="#panics-1">Panics</a></h5> |
| <p>Panics if <code>(x, y)</code> is out of bounds.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.blend_pixel" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#841">source</a><h4 class="code-header">fn <a href="#tymethod.blend_pixel" class="fnname">blend_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>)</h4></section></summary><div class="docblock"><p>Put a pixel at location (x, y), taking into account alpha channels</p> |
| <p>DEPRECATED: This method will be removed. Blend the pixel directly instead.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.inner_mut" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#922">source</a><h4 class="code-header">fn <a href="#tymethod.inner_mut" class="fnname">inner_mut</a>(&mut self) -> &mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a></h4></section></summary><div class="docblock"><p>Returns a mutable reference to the underlying image.</p> |
| </div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.unsafe_put_pixel" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#834-836">source</a><h4 class="code-header">unsafe fn <a href="#method.unsafe_put_pixel" class="fnname">unsafe_put_pixel</a>(&mut self, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, pixel: Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>)</h4></section></summary><div class="docblock"><p>Puts a pixel at location (x, y). Indexed from top left.</p> |
| <p>This function can be implemented in a way that ignores bounds checking.</p> |
| <h5 id="safety"><a href="#safety">Safety</a></h5> |
| <p>The coordinates must be <a href="traits.GenericImageView.html#method.in_bounds"><code>in_bounds</code></a> of the image.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.copy_from" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#858-877">source</a><h4 class="code-header">fn <a href="#method.copy_from" class="fnname">copy_from</a><O>(&mut self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>O, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="type" href="error/type.ImageResult.html" title="type image::error::ImageResult">ImageResult</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>><span class="where fmt-newline">where<br> O: <a class="trait" href="trait.GenericImageView.html" title="trait image::GenericImageView">GenericImageView</a><Pixel = Self::<a class="associatedtype" href="trait.GenericImageView.html#associatedtype.Pixel" title="type image::GenericImageView::Pixel">Pixel</a>>,</span></h4></section></summary><div class="docblock"><p>Copies all of the pixels from another image into this image.</p> |
| <p>The other image is copied with the top-left corner of the |
| other image placed at (x, y).</p> |
| <p>In order to copy only a piece of the other image, use <a href="trait.GenericImageView.html#method.view"><code>GenericImageView::view</code></a>.</p> |
| <p>You can use <a href="flat/struct.FlatSamples.html"><code>FlatSamples</code></a> to source pixels from an arbitrary regular raster of channel |
| values, for example from a foreign interface or a fixed image.</p> |
| <h5 id="returns"><a href="#returns">Returns</a></h5> |
| <p>Returns an error if the image is too large to be copied at the given position</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.copy_within" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#886-919">source</a><h4 class="code-header">fn <a href="#method.copy_within" class="fnname">copy_within</a>(&mut self, source: <a class="struct" href="math/struct.Rect.html" title="struct image::math::Rect">Rect</a>, x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Copies all of the pixels from one part of this image to another part of this image.</p> |
| <p>The destination rectangle of the copy is specified with the top-left corner placed at (x, y).</p> |
| <h5 id="returns-1"><a href="#returns-1">Returns</a></h5> |
| <p><code>true</code> if the copy was successful, <code>false</code> if the image could not |
| be copied due to size constraints.</p> |
| </div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sub_image" class="method has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#927-935">source</a><h4 class="code-header">fn <a href="#method.sub_image" class="fnname">sub_image</a>(<br> &mut self,<br> x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,<br> height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a><br>) -> <a class="struct" href="struct.SubImage.html" title="struct image::SubImage">SubImage</a><&mut Self::<a class="associatedtype" href="trait.GenericImage.html#associatedtype.InnerImage" title="type image::GenericImage::InnerImage">InnerImage</a>></h4></section></summary><div class="docblock"><p>Returns a mutable subimage that is a view into this image. |
| If you want an immutable subimage instead, use <a href="trait.GenericImageView.html#method.view" title="GenericImageView::view"><code>GenericImageView::view</code></a> |
| The coordinates set the position of the top left corner of the SubImage.</p> |
| </div></details></div><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-GenericImage-for-DynamicImage" class="impl has-srclink"><a class="srclink rightside" href="../src/image/dynimage.rs.html#1062-1103">source</a><a href="#impl-GenericImage-for-DynamicImage" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h3></section></summary><div class="impl-items"><section id="associatedtype.InnerImage-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImage-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a> = <a class="enum" href="enum.DynamicImage.html" title="enum image::DynamicImage">DynamicImage</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-GenericImage-for-ViewMut%3CBuffer%2C%20P%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/image/flat.rs.html#1402-1429">source</a><a href="#impl-GenericImage-for-ViewMut%3CBuffer%2C%20P%3E" class="anchor"></a><h3 class="code-header">impl<Buffer, P: <a class="trait" href="trait.Pixel.html" title="trait image::Pixel">Pixel</a>> <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="struct" href="flat/struct.ViewMut.html" title="struct image::flat::ViewMut">ViewMut</a><Buffer, P><span class="where fmt-newline">where<br> Buffer: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><[P::<a class="associatedtype" href="trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>]> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><[P::<a class="associatedtype" href="trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>]>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.InnerImage-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImage-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a> = <a class="struct" href="flat/struct.ViewMut.html" title="struct image::flat::ViewMut">ViewMut</a><Buffer, P></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-GenericImage-for-SubImage%3CI%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/image/image.rs.html#1032-1069">source</a><a href="#impl-GenericImage-for-SubImage%3CI%3E" class="anchor"></a><h3 class="code-header">impl<I> <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="struct" href="struct.SubImage.html" title="struct image::SubImage">SubImage</a><I><span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> I::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a>: <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.InnerImage-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImage-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a> = <I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html#associatedtype.Target" title="type core::ops::deref::Deref::Target">Target</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-GenericImage-for-ImageBuffer%3CP%2C%20Container%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/image/buffer.rs.html#1053-1119">source</a><a href="#impl-GenericImage-for-ImageBuffer%3CP%2C%20Container%3E" class="anchor"></a><h3 class="code-header">impl<P, Container> <a class="trait" href="trait.GenericImage.html" title="trait image::GenericImage">GenericImage</a> for <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><P, Container><span class="where fmt-newline">where<br> P: <a class="trait" href="trait.Pixel.html" title="trait image::Pixel">Pixel</a> + 'static,<br> Container: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.Deref.html" title="trait core::ops::deref::Deref">Deref</a><Target = [P::<a class="associatedtype" href="trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>]> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/deref/trait.DerefMut.html" title="trait core::ops::deref::DerefMut">DerefMut</a>,<br> P::<a class="associatedtype" href="trait.Pixel.html#associatedtype.Subpixel" title="type image::Pixel::Subpixel">Subpixel</a>: 'static,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.InnerImage-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.InnerImage-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.InnerImage" class="associatedtype">InnerImage</a> = <a class="struct" href="struct.ImageBuffer.html" title="struct image::ImageBuffer">ImageBuffer</a><P, Container></h4></section></div></details></div><script src="../implementors/image/image/trait.GenericImage.js" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="image" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html> |