<!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 `ChunksMut` struct in crate `collections`."> <meta name="keywords" content="rust, rustlang, rust-lang, ChunksMut"> <title>collections::slice::ChunksMut - Rust</title> <link rel="stylesheet" type="text/css" href="../../normalize.css"> <link rel="stylesheet" type="text/css" href="../../rustdoc.css"> <link rel="stylesheet" type="text/css" href="../../main.css"> <link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico"> </head> <body class="rustdoc struct"> <!--[if lte IE 8]> <div class="warning"> This old browser is unsupported and will most likely display funky things. </div> <![endif]--> <nav class="sidebar"> <a href='../../collections/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a> <p class='location'>Struct ChunksMut</p><div class="block items"><ul><li><a href="#implementations">Trait Implementations</a></li></ul></div><p class='location'><a href='../index.html'>collections</a>::<wbr><a href='index.html'>slice</a></p><script>window.sidebarCurrent = {name: 'ChunksMut', ty: 'struct', relpath: ''};</script><script defer src="sidebar-items.js"></script> </nav> <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"> </div> </form> </nav> <section id='main' class="content"> <h1 class='fqn'><span class='in-band'>Struct <a href='../index.html'>collections</a>::<wbr><a href='index.html'>slice</a>::<wbr><a class="struct" href=''>ChunksMut</a></span><span class='out-of-band'><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><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/core/slice/mod.rs.html#2304-2307' title='goto source code'>[src]</a></span></h1> <pre class='rust struct'>pub struct ChunksMut<'a, T> <span class="where fmt-newline">where<br> T: 'a, </span> { /* fields omitted */ }</pre><div class='docblock'><p>An iterator over a slice in (non-overlapping) mutable chunks (<code>size</code> elements at a time). When the slice len is not evenly divided by the chunk size, the last slice of the iteration will be the remainder.</p> <p>This struct is created by the <a href="../../std/primitive.slice.html#method.chunks_mut"><code>chunks_mut</code></a> method on <a href="../../std/primitive.slice.html">slices</a>.</p> </div> <h2 id='implementations' class='small-section-header'> Trait Implementations<a href='#implementations' class='anchor'></a> </h2> <h3 id='impl-FusedIterator' class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="../../core/iter/traits/trait.FusedIterator.html" title="trait core::iter::traits::FusedIterator">FusedIterator</a> for <a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T></code><a href='#impl-FusedIterator' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2395' title='goto source code'>[src]</a></span></h3> <div class='impl-items'></div><h3 id='impl-ExactSizeIterator' class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="../../core/iter/traits/trait.ExactSizeIterator.html" title="trait core::iter::traits::ExactSizeIterator">ExactSizeIterator</a> for <a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T></code><a href='#impl-ExactSizeIterator' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2392' title='goto source code'>[src]</a></span></h3> <div class='impl-items'></div><h3 id='impl-Debug' class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="../../collections/fmt/trait.Debug.html" title="trait collections::fmt::Debug">Debug</a> for <a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T> <span class="where fmt-newline">where<br> T: 'a + <a class="trait" href="../../collections/fmt/trait.Debug.html" title="trait collections::fmt::Debug">Debug</a>, </span></code><a href='#impl-Debug' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2302' title='goto source code'>[src]</a></span></h3> <div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><code>fn <a href='../../collections/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&self, __arg_0: &mut <a class="struct" href="../../collections/fmt/struct.Formatter.html" title="struct collections::fmt::Formatter">Formatter</a>) -> <a class="enum" href="../../core/result/enum.Result.html" title="enum core::result::Result">Result</a><(), <a class="struct" href="../../collections/fmt/struct.Error.html" title="struct collections::fmt::Error">Error</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2302' title='goto source code'>[src]</a></span></h4> <div class='docblock'><p>Formats the value using the given formatter.</p> </div></div><h3 id='impl-Iterator' class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="../../core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a> for <a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T></code><a href='#impl-Iterator' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2310-2371' title='goto source code'>[src]</a></span></h3> <div class='impl-items'><h4 id='associatedtype.Item' class="type"><span id='Item.t' class='invisible'><code>type <a href='../../core/iter/iterator/trait.Iterator.html#associatedtype.Item' class="type">Item</a> = &'a mut [T]</code></span></h4> <h4 id='method.next' class="method"><span id='next.v' class='invisible'><code>fn <a href='../../core/iter/iterator/trait.Iterator.html#tymethod.next' class='fnname'>next</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a mut [T]></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2314-2324' title='goto source code'>[src]</a></span></h4> <h4 id='method.size_hint' class="method"><span id='size_hint.v' class='invisible'><code>fn <a href='../../core/iter/iterator/trait.Iterator.html#method.size_hint' class='fnname'>size_hint</a>(&self) -> (usize, <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><usize>)</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2327-2336' title='goto source code'>[src]</a></span></h4> <h4 id='method.count' class="method"><span id='count.v' class='invisible'><code>fn <a href='../../core/iter/iterator/trait.Iterator.html#method.count' class='fnname'>count</a>(self) -> usize</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2339-2341' title='goto source code'>[src]</a></span></h4> <h4 id='method.nth' class="method"><span id='nth.v' class='invisible'><code>fn <a href='../../core/iter/iterator/trait.Iterator.html#method.nth' class='fnname'>nth</a>(&mut self, n: usize) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a mut [T]></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2344-2360' title='goto source code'>[src]</a></span></h4> <h4 id='method.last' class="method"><span id='last.v' class='invisible'><code>fn <a href='../../core/iter/iterator/trait.Iterator.html#method.last' class='fnname'>last</a>(self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><<<a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T> as <a class="trait" href="../../core/iter/iterator/trait.Iterator.html" title="trait core::iter::iterator::Iterator">Iterator</a>>::<a class="type" href="../../core/iter/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::iterator::Iterator::Item">Item</a>></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2363-2370' title='goto source code'>[src]</a></span></h4> </div><h3 id='impl-DoubleEndedIterator' class='impl'><span class='in-band'><code>impl<'a, T> <a class="trait" href="../../core/iter/traits/trait.DoubleEndedIterator.html" title="trait core::iter::traits::DoubleEndedIterator">DoubleEndedIterator</a> for <a class="struct" href="../../collections/slice/struct.ChunksMut.html" title="struct collections::slice::ChunksMut">ChunksMut</a><'a, T></code><a href='#impl-DoubleEndedIterator' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2374-2389' title='goto source code'>[src]</a></span></h3> <div class='impl-items'><h4 id='method.next_back' class="method"><span id='next_back.v' class='invisible'><code>fn <a href='../../core/iter/traits/trait.DoubleEndedIterator.html#tymethod.next_back' class='fnname'>next_back</a>(&mut self) -> <a class="enum" href="../../core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a mut [T]></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/core/slice/mod.rs.html#2376-2388' title='goto source code'>[src]</a></span></h4> </div></section> <section id='search' class="content hidden"></section> <section class="footer"></section> <aside id="help" class="hidden"> <div> <h1 class="hidden">Help</h1> <div class="shortcuts"> <h2>Keyboard Shortcuts</h2> <dl> <dt>?</dt> <dd>Show this help dialog</dd> <dt>S</dt> <dd>Focus the search field</dd> <dt>⇤</dt> <dd>Move up in search results</dd> <dt>⇥</dt> <dd>Move down in search results</dd> <dt>⏎</dt> <dd>Go to active search result</dd> <dt>+</dt> <dd>Collapse/expand 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> </div> </div> </aside> <script> window.rootPath = "../../"; window.currentCrate = "collections"; </script> <script src="../../main.js"></script> <script defer src="../../search-index.js"></script> </body> </html>