<!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-write array view."><meta name="keywords" content="rust, rustlang, rust-lang, ArrayViewMut"><title>ArrayViewMut 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">☰</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 ArrayViewMut</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%20mut%20ArrayBase%3CS%2C%20D%3E%3E">From<&'a mut ArrayBase<S, D>></a><a href="#impl-From%3C%26%27a%20mut%20Slice%3E">From<&'a mut Slice></a><a href="#impl-IndexLonger%3CI%3E">IndexLonger<I></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="ArrayViewMut" 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="#">ArrayViewMut</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">−</span>]</a></span><a class="srclink" href="../src/ndarray/lib.rs.html#679" title="goto source code">[src]</a></span></h1><pre class="rust typedef">type ArrayViewMut<'a, A, D> = <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a><<a class="struct" href="struct.ViewRepr.html" title="struct ndarray::ViewRepr">ViewRepr</a><<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&'a mut </a>A>, D>;</pre><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A read-write 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>ArrayViewMut<'a, A, D></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.ArrayView.html"><code>ArrayView</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<'a, A, D> <a class="type" href="type.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, D> <span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>, </span></h3><a href="#impl" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#275-372" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Methods for read-write 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><Sh>(shape: Sh, xs: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&'a mut [A]</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="struct" href="struct.ShapeError.html" title="struct ndarray::ShapeError">ShapeError</a>> <span class="where fmt-newline">where<br> 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><<a class="struct" href="struct.StrideShape.html" title="struct ndarray::StrideShape">StrideShape</a><D>>, </span></h4><a href="#method.from_shape" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#303-315" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Create a read-write array view borrowing its data from a slice.</p>
<p>Checks whether <code>dim</code> and <code>strides</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::ArrayViewMut</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="kw-2">mut</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="kw-2">mut</span> <span class="ident">a</span> <span class="op">=</span> <span class="ident">ArrayViewMut::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">&</span><span class="kw-2">mut</span> <span class="ident">s</span>).<span class="ident">unwrap</span>();
<span class="ident">a</span>[[<span class="number">0</span>, <span class="number">0</span>, <span class="number">0</span>]] <span class="op">=</span> <span class="number">1</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">&</span>[[[<span class="number">1</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">&</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><Sh>(shape: Sh, ptr: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.pointer.html">*mut A</a>) -> Self <span class="where fmt-newline">where<br> 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><<a class="struct" href="struct.StrideShape.html" title="struct ndarray::StrideShape">StrideShape</a><D>>, </span></h4><a href="#method.from_shape_ptr" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#322-329" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Create an <code>ArrayViewMut<A, D></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 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>) -> <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#335-364" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Split the array view along <code>axis</code> and return one mutable view strictly
before the split and one mutable view after the split.</p>
<p><strong>Panics</strong> if <code>axis</code> or <code>index</code> is out of bounds.</p>
</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>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.slice.html">&'a mut [A]</a>></h4><a href="#method.into_slice" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#368-370" 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%20mut%20ArrayBase%3CS%2C%20D%3E%3E" class="impl has-srclink"><h3 class="code-header in-band">impl<'a, A, S, D> <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><&'a mut <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a><S, D>> for <a class="type" href="type.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, D> <span class="where fmt-newline">where<br> S: <a class="trait" href="trait.DataMut.html" title="trait ndarray::DataMut">DataMut</a><Elem = A>,<br> D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>, </span></h3><a href="#impl-From%3C%26%27a%20mut%20ArrayBase%3CS%2C%20D%3E%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#259-266" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Implementation of <code>ArrayViewMut::from(&mut A)</code> where <code>A</code> is an array.</p>
<p>Create a read-write 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: &'a mut <a class="struct" href="struct.ArrayBase.html" title="struct ndarray::ArrayBase">ArrayBase</a><S, D>) -> Self</h4><a href="#method.from-1" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#263-265" 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%20mut%20Slice%3E" class="impl has-srclink"><h3 class="code-header in-band">impl<'a, A, Slice: ?<a class="trait" href="https://doc.rust-lang.org/1.54.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>> <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&'a mut </a>Slice> for <a class="type" href="type.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, <a class="type" href="type.Ix1.html" title="type ndarray::Ix1">Ix1</a>> <span class="where fmt-newline">where<br> Slice: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/convert/trait.AsMut.html" title="trait core::convert::AsMut">AsMut</a><<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>>, </span></h3><a href="#impl-From%3C%26%27a%20mut%20Slice%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#245-254" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Implementation of <code>ArrayViewMut::from(&mut S)</code> where <code>S</code> is a slice or slicable.</p>
<p>Create a one-dimensional read-write 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">&'a mut </a>Slice) -> Self</h4><a href="#method.from" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#248-253" 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<'a, I, A, D> <a class="trait" href="trait.IndexLonger.html" title="trait ndarray::IndexLonger">IndexLonger</a><I> for <a class="type" href="type.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, D> <span class="where fmt-newline">where<br> I: <a class="trait" href="trait.NdIndex.html" title="trait ndarray::NdIndex">NdIndex</a><D>,<br> D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>, </span></h3><a href="#impl-IndexLonger%3CI%3E" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#374-433" 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) -> <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&'a mut </a>A</h4><a href="#method.index" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#392-400" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Convert a mutable array view to a mutable reference of a element.</p>
<p>This method is like <code>IndexMut::index_mut</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_mut">the <code>get_mut</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.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) -> <a class="enum" href="https://doc.rust-lang.org/1.54.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&'a mut </a>A></h4><a href="#method.get" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#410-418" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Convert a mutable array view to a mutable reference of a element, with
checked access.</p>
<p>See also <a href="struct.ArrayBase.html#method.get_mut">the <code>get_mut</code> method</a> which works for all arrays and array
views.</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) -> <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&'a mut </a>A</h4><a href="#method.uget" class="anchor"></a><a class="srclink" href="../src/ndarray/impl_views.rs.html#429-432" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Convert a mutable array view to a mutable reference of a element without
boundary check.</p>
<p>See also <a href="struct.ArrayBase.html#method.uget_mut">the <code>uget_mut</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">&'a mut </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></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-IntoIterator" class="impl has-srclink"><h3 class="code-header in-band">impl<'a, A, D> <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.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, D> <span class="where fmt-newline">where<br> D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>, </span></h3><a href="#impl-IntoIterator" class="anchor"></a><a class="srclink" href="../src/ndarray/arraytraits.rs.html#160-169" 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">&'a mut </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.IterMut.html" title="struct ndarray::iter::IterMut">IterMut</a><'a, A, D></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) -> 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#166-168" 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<'a, A, D: <a class="trait" href="trait.Dimension.html" title="trait ndarray::Dimension">Dimension</a>> <a class="trait" href="trait.NdProducer.html" title="trait ndarray::NdProducer">NdProducer</a> for <a class="type" href="type.ArrayViewMut.html" title="type ndarray::ArrayViewMut">ArrayViewMut</a><'a, A, D></h3><a href="#impl-NdProducer" class="anchor"></a><a class="srclink" href="../src/ndarray/zip/mod.rs.html#328-377" 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">&'a mut </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>(&self) -> 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#371" 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>(&self) -> 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>