image2aa 0.1.4

Convert image to ASCII Art.
Documentation
<!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 read-only array view."><meta name="keywords" content="rust, rustlang, rust-lang, ArrayView"><title>ArrayView in ndarray - 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="../light.css"  id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc type"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../ndarray/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Type Definition ArrayView</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><div class="sidebar-links"><a href="#method.from_shape">from_shape</a><a href="#method.from_shape_ptr">from_shape_ptr</a><a href="#method.into_slice">into_slice</a><a href="#method.split_at">split_at</a></div><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><div class="sidebar-links"><a href="#impl-From%3C%26%27a%20ArrayBase%3CS%2C%20D%3E%3E">From&lt;&amp;&#39;a ArrayBase&lt;S, D&gt;&gt;</a><a href="#impl-From%3C%26%27a%20Slice%3E">From&lt;&amp;&#39;a Slice&gt;</a><a href="#impl-IndexLonger%3CI%3E">IndexLonger&lt;I&gt;</a><a href="#impl-IntoIterator">IntoIterator</a><a href="#impl-NdProducer">NdProducer</a></div></div><h2 class="location">Other items in<br><a href="index.html">ndarray</a></h2><div id="sidebar-vars" data-name="ArrayView" data-ty="type" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img src="../wheel.svg" width="18" height="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Type Definition <a href="index.html">ndarray</a>::<wbr><a class="type" href="#">ArrayView</a><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></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/ndarray/lib.rs.html#664" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type ArrayView&lt;'a, A, D&gt; = <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a>&lt;<a class="struct" href="struct.ViewRepr.html" title="struct ndarray::ViewRepr">ViewRepr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A&gt;, D&gt;;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A read-only array view.</p>
<p>An array view represents an array or a part of it, created from
an iterator, subview or slice of an array.</p>
<p>The <code>ArrayView&lt;'a, A, D&gt;</code> is parameterized by <code>'a</code> for the scope of the
borrow, <code>A</code> for the element type and <code>D</code> for the dimensionality.</p>
<p>Array views have all the methods of an array (see <a href="struct.ArrayBase.html"><code>ArrayBase</code></a>).</p>
<p>See also <a href="type.ArrayViewMut.html"><code>ArrayViewMut</code></a>.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle" open><summary><div id="impl" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, A, D&gt; <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>,&nbsp;</span></h3><a href="#impl" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#30-137" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Methods for read-only array views.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_shape" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.from_shape" class="fnname">from_shape</a>&lt;Sh&gt;(shape: Sh, xs: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;'a [A]</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self, <a class="struct" href="struct.ShapeError.html" title="struct ndarray::ShapeError">ShapeError</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Sh: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.StrideShape.html" title="struct ndarray::StrideShape">StrideShape</a>&lt;D&gt;&gt;,&nbsp;</span></h4><a href="#method.from_shape" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#57-69" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Create a read-only array view borrowing its data from a slice.</p>
<p>Checks whether <code>shape</code> are compatible with the slice’s
length, returning an <code>Err</code> if not compatible.</p>

<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">ndarray::ArrayView</span>;
<span class="kw">use</span> <span class="ident">ndarray::arr3</span>;
<span class="kw">use</span> <span class="ident">ndarray::ShapeBuilder</span>;

<span class="kw">let</span> <span class="ident">s</span> <span class="op">=</span> [<span class="number">0</span>, <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>, <span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>, <span class="number">7</span>, <span class="number">8</span>, <span class="number">9</span>, <span class="number">10</span>, <span class="number">11</span>, <span class="number">12</span>];
<span class="kw">let</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">ArrayView::from_shape</span>((<span class="number">2</span>, <span class="number">3</span>, <span class="number">2</span>).<span class="ident">strides</span>((<span class="number">1</span>, <span class="number">4</span>, <span class="number">2</span>)),
                              <span class="kw-2">&amp;</span><span class="ident">s</span>).<span class="ident">unwrap</span>();

<span class="macro">assert!</span>(
    <span class="ident">a</span> <span class="op">=</span><span class="op">=</span> <span class="ident">arr3</span>(<span class="kw-2">&amp;</span>[[[<span class="number">0</span>, <span class="number">2</span>],
                 [<span class="number">4</span>, <span class="number">6</span>],
                 [<span class="number">8</span>, <span class="number">10</span>]],
                [[<span class="number">1</span>, <span class="number">3</span>],
                 [<span class="number">5</span>, <span class="number">7</span>],
                 [<span class="number">9</span>, <span class="number">11</span>]]])
);
<span class="macro">assert!</span>(<span class="ident">a</span>.<span class="ident">strides</span>() <span class="op">=</span><span class="op">=</span> <span class="kw-2">&amp;</span>[<span class="number">1</span>, <span class="number">4</span>, <span class="number">2</span>]);</pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from_shape_ptr" class="method has-srclink"><h4 class="code-header">pub unsafe fn <a href="#method.from_shape_ptr" class="fnname">from_shape_ptr</a>&lt;Sh&gt;(shape: Sh, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.pointer.html">*const A</a>) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Sh: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="struct.StrideShape.html" title="struct ndarray::StrideShape">StrideShape</a>&lt;D&gt;&gt;,&nbsp;</span></h4><a href="#method.from_shape_ptr" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#76-83" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Create an <code>ArrayView&lt;A, D&gt;</code> from shape information and a
raw pointer to the elements.</p>
<p>Unsafe because caller is responsible for ensuring that the pointer is
valid, not mutably aliased and coherent with the dimension and stride information.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.split_at" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.split_at" class="fnname">split_at</a>(self, axis: <a class="struct" href="struct.Axis.html" title="struct ndarray::Axis">Axis</a>, index: <a class="type" href="type.Ix.html" title="type ndarray::Ix">Ix</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.split_at" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#94-123" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Split the array view along <code>axis</code> and return one view strictly before the
split and one view after the split.</p>
<p><strong>Panics</strong> if <code>axis</code> or <code>index</code> is out of bounds.</p>
<p>Below, an illustration of <code>.split_at(Axis(2), 2)</code> on
an array with shape 3 × 5 × 5.</p>
<img src="https://bluss.github.io/ndarray/images/split_at.svg" width="300px" height="271px"></div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into_slice" class="method has-srclink"><h4 class="code-header">pub fn <a href="#method.into_slice" class="fnname">into_slice</a>(&amp;self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&amp;'a [A]</a>&gt;</h4><a href="#method.into_slice" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#127-135" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Return the array’s data as a slice, if it is contiguous and in standard order.
Return <code>None</code> otherwise.</p>
</div></details></div></details><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-From%3C%26%27a%20ArrayBase%3CS%2C%20D%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, A, S, D&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;&amp;'a <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a>&lt;S, D&gt;&gt; for <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Data.html" title="trait ndarray::Data">Data</a>&lt;Elem = A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>,&nbsp;</span></h3><a href="#impl-From%3C%26%27a%20ArrayBase%3CS%2C%20D%3E%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#233-240" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Implementation of <code>ArrayView::from(&amp;A)</code> where <code>A</code> is an array.</p>
<p>Create a read-only array view of the array.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(array: &amp;'a <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a>&lt;S, D&gt;) -&gt; Self</h4><a href="#method.from-1" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#237-239" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-From%3C%26%27a%20Slice%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, A, Slice:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>Slice&gt; for <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, <a class="type" href="type.Ix1.html" title="type ndarray::Ix1">Ix1</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Slice: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">[</a>A<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">]</a>&gt;,&nbsp;</span></h3><a href="#impl-From%3C%26%27a%20Slice%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#219-228" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Implementation of <code>ArrayView::from(&amp;S)</code> where <code>S</code> is a slice or slicable.</p>
<p>Create a one-dimensional read-only array view of the data in <code>slice</code>.</p>
</div><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.from" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(slice: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>Slice) -&gt; Self</h4><a href="#method.from" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#222-227" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-IndexLonger%3CI%3E" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, 'b, I, A, D&gt; <a class="trait" href="trait.IndexLonger.html" title="trait ndarray::IndexLonger">IndexLonger</a>&lt;I&gt; for &amp;'b <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="trait.NdIndex.html" title="trait ndarray::NdIndex">NdIndex</a>&lt;D&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>,&nbsp;</span></h3><a href="#impl-IndexLonger%3CI%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#223-272" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.index" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="trait.IndexLonger.html#tymethod.index" class="fnname">index</a>(self, index: I) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A</h4><a href="#method.index" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#241-247" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Get a reference of a element through the view.</p>
<p>This method is like <code>Index::index</code> but with a longer lifetime (matching
the array view); which we can only do for the array view and not in the
<code>Index</code> trait.</p>
<p>See also <a href="struct.ArrayBase.html#method.get">the <code>get</code> method</a> which works for all arrays and array
views.</p>
<p><strong>Panics</strong> if index is out of bounds.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.uget" class="method trait-impl has-srclink"><h4 class="code-header">unsafe fn <a href="trait.IndexLonger.html#tymethod.uget" class="fnname">uget</a>(self, index: I) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A</h4><a href="#method.uget" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#267-271" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Get a reference of a element through the view without boundary check</p>
<p>This method is like <code>elem</code> with a longer lifetime (matching the array
view); which we can’t do for general arrays.</p>
<p>See also <a href="struct.ArrayBase.html#method.uget">the <code>uget</code> method</a> which works for all arrays and array
views.</p>
<p><strong>Note:</strong> only unchecked for non-debug builds of ndarray.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="trait.IndexLonger.html#associatedtype.Output" class="type">Output</a> = <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A</h4><a href="#associatedtype.Output" class="anchor"></a></div></summary><div class='docblock'><p>The type of the reference to the element that is produced, including
its lifetime. <a href="trait.IndexLonger.html#associatedtype.Output">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.get" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="trait.IndexLonger.html#tymethod.get" class="fnname">get</a>(self, index: I) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A&gt;</h4><a href="#method.get" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#249-254" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Get a reference of a element through the view. <a href="trait.IndexLonger.html#tymethod.get">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-IntoIterator" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, A, D&gt; <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, D&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>,&nbsp;</span></h3><a href="#impl-IntoIterator" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#149-158" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Item-1" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A</h4><a href="#associatedtype.Item-1" class="anchor"></a></div></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="associatedtype.IntoIter" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = <a class="struct" href="iter/struct.Iter.html" title="struct ndarray::iter::Iter">Iter</a>&lt;'a, A, D&gt;</h4><a href="#associatedtype.IntoIter" class="anchor"></a></div></summary><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.into_iter" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4><a href="#method.into_iter" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#155-157" title="goto source code">[src]</a></div></summary><div class='docblock'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.54.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-NdProducer" class="impl has-srclink"><h3 class="code-header in-band">impl&lt;'a, A, D:&nbsp;<a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>&gt; <a class="trait" href="trait.NdProducer.html" title="trait ndarray::NdProducer">NdProducer</a> for <a class="type" href="type.ArrayView.html" title="type ndarray::ArrayView">ArrayView</a>&lt;'a, A, D&gt;</h3><a href="#impl-NdProducer" class="anchor"></a><a class="srclink" href="../src/ndarray/zip/mod.rs.html#276-326" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Item" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="trait.NdProducer.html#associatedtype.Item" class="type">Item</a> = <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;'a </a>A</h4><a href="#associatedtype.Item" class="anchor"></a></div></summary><div class='docblock'><p>The element produced per iteration.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="associatedtype.Dim" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="trait.NdProducer.html#associatedtype.Dim" class="type">Dim</a> = D</h4><a href="#associatedtype.Dim" class="anchor"></a></div></summary><div class='docblock'><p>Dimension type</p>
</div></details><div id="associatedtype.Ptr" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="trait.NdProducer.html#associatedtype.Ptr" class="type">Ptr</a> = <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.pointer.html">*mut A</a></h4><a href="#associatedtype.Ptr" class="anchor"></a></div><div id="associatedtype.Stride" class="type trait-impl has-srclink"><h4 class="code-header">type <a href="trait.NdProducer.html#associatedtype.Stride" class="type">Stride</a> = <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.isize.html">isize</a></h4><a href="#associatedtype.Stride" class="anchor"></a></div><div id="method.contiguous_stride" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="trait.NdProducer.html#tymethod.contiguous_stride" class="fnname">contiguous_stride</a>(&amp;self) -&gt; Self::<a class="type" href="trait.NdProducer.html#associatedtype.Stride" title="type ndarray::NdProducer::Stride">Stride</a></h4><a href="#method.contiguous_stride" class="anchor"></a><a class="srclink" href="../src/ndarray/zip/mod.rs.html#320" title="goto source code">[src]</a></div><details class="rustdoc-toggle" open><summary><div id="tymethod.__private__" class="tymethod trait-impl has-srclink"><h4 class="code-header">fn <a href="trait.NdProducer.html#tymethod.__private__" class="fnname">__private__</a>(&amp;self) -&gt; PrivateMarker</h4><a href="#tymethod.__private__" class="anchor"></a><a class="srclink" href="../src/ndarray/zip/mod.rs.html#178" title="goto source code">[src]</a></div></summary><div class='docblock'><p>This trait is private to implement; this method exists to make it
impossible to implement outside the crate. <a href="trait.NdProducer.html#tymethod.__private__">Read more</a></p>
</div></details></div></details></div></section><section id="search" class="content hidden"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="ndarray" data-search-index-js="../search-index.js" data-search-js="../search.js"></div><script src="../main.js"></script></body></html>