You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/rayon/iter/trait.ParallelExtend.html

66 lines
60 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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 `ParallelExtend` trait in crate `rayon`."><meta name="keywords" content="rust, rustlang, rust-lang, ParallelExtend"><title>rayon::iter::ParallelExtend - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize.css"><link rel="stylesheet" type="text/css" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark.css"><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script src="../../storage.js"></script><noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="shortcut icon" href="../../favicon.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../../rayon/index.html'><div class='logo-container'><img src='../../rust-logo.png' alt='logo'></div></a><p class='location'>Trait ParallelExtend</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.par_extend">par_extend</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-BTreeSet%3CT%3E">BTreeSet&lt;T&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-BinaryHeap%3CT%3E">BinaryHeap&lt;T&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-HashSet%3CT%2C%20S%3E">HashSet&lt;T, S&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-LinkedList%3CT%3E">LinkedList&lt;T&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-Vec%3CT%3E">Vec&lt;T&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20T%3E-for-VecDeque%3CT%3E">VecDeque&lt;T&gt;</a><a href="#impl-ParallelExtend%3C%26%27a%20char%3E-for-String">String</a><a href="#impl-ParallelExtend%3C%26%27a%20str%3E-for-String">String</a><a href="#impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-BTreeMap%3CK%2C%20V%3E">BTreeMap&lt;K, V&gt;</a><a href="#impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E">HashMap&lt;K, V, S&gt;</a><a href="#impl-ParallelExtend%3C(A%2C%20B)%3E-for-(FromA%2C%20FromB)">(FromA, FromB)</a><a href="#impl-ParallelExtend%3C(K%2C%20V)%3E-for-BTreeMap%3CK%2C%20V%3E">BTreeMap&lt;K, V&gt;</a><a href="#impl-ParallelExtend%3C(K%2C%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E">HashMap&lt;K, V, S&gt;</a><a href="#impl-ParallelExtend%3CCow%3C%27a%2C%20str%3E%3E-for-String">String</a><a href="#impl-ParallelExtend%3CEither%3CL%2C%20R%3E%3E-for-(A%2C%20B)">(A, B)</a><a href="#impl-ParallelExtend%3CString%3E-for-String">String</a><a href="#impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E">BTreeSet&lt;T&gt;</a><a href="#impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E">BinaryHeap&lt;T&gt;</a><a href="#impl-ParallelExtend%3CT%3E-for-HashSet%3CT%2C%20S%3E">HashSet&lt;T, S&gt;</a><a href="#impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E">LinkedList&lt;T&gt;</a><a href="#impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E">Vec&lt;T&gt;</a><a href="#impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E">VecDeque&lt;T&gt;</a><a href="#impl-ParallelExtend%3Cchar%3E-for-String">String</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>rayon</a>::<wbr><a href='index.html'>iter</a></p><script>window.sidebarCurrent = {name: 'ParallelExtend', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='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/rayon/iter/mod.rs.html#2660-2680' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>rayon</a>::<wbr><a href='index.html'>iter</a>::<wbr><a class="trait" href=''>ParallelExtend</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'>pub trait ParallelExtend&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span>{
fn <a href='#tymethod.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;</span>;
}</pre></div><div class='docblock'><p><code>ParallelExtend</code> extends an existing collection with items from a <a href="trait.ParallelIterator.html"><code>ParallelIterator</code></a>.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<p>Implementing <code>ParallelExtend</code> for your type:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">rayon</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">mem</span>;
<span class="kw">struct</span> <span class="ident">BlackHole</span> {
<span class="ident">mass</span>: <span class="ident">usize</span>,
}
<span class="kw">impl</span><span class="op">&lt;</span><span class="ident">T</span>: <span class="ident">Send</span><span class="op">&gt;</span> <span class="ident">ParallelExtend</span><span class="op">&lt;</span><span class="ident">T</span><span class="op">&gt;</span> <span class="kw">for</span> <span class="ident">BlackHole</span> {
<span class="kw">fn</span> <span class="ident">par_extend</span><span class="op">&lt;</span><span class="ident">I</span><span class="op">&gt;</span>(<span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="self">self</span>, <span class="ident">par_iter</span>: <span class="ident">I</span>)
<span class="kw">where</span> <span class="ident">I</span>: <span class="ident">IntoParallelIterator</span><span class="op">&lt;</span><span class="ident">Item</span> <span class="op">=</span> <span class="ident">T</span><span class="op">&gt;</span>
{
<span class="kw">let</span> <span class="ident">par_iter</span> <span class="op">=</span> <span class="ident">par_iter</span>.<span class="ident">into_par_iter</span>();
<span class="self">self</span>.<span class="ident">mass</span> <span class="op">+</span><span class="op">=</span> <span class="ident">par_iter</span>.<span class="ident">count</span>() <span class="op">*</span> <span class="ident">mem</span>::<span class="ident">size_of</span>::<span class="op">&lt;</span><span class="ident">T</span><span class="op">&gt;</span>();
}
}
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">bh</span> <span class="op">=</span> <span class="ident">BlackHole</span> { <span class="ident">mass</span>: <span class="number">0</span> };
<span class="ident">bh</span>.<span class="ident">par_extend</span>(<span class="number">0i32</span>..<span class="number">1000</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">bh</span>.<span class="ident">mass</span>, <span class="number">4000</span>);
<span class="ident">bh</span>.<span class="ident">par_extend</span>(<span class="number">0i64</span>..<span class="number">10</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">bh</span>.<span class="ident">mass</span>, <span class="number">4080</span>);</pre></div>
</div>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.par_extend' class='method'><code id='par_extend.v'>fn <a href='#tymethod.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code></h3><div class='docblock'><p>Extends an instance of the collection with the elements drawn
from the parallel iterator <code>par_iter</code>.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">rayon</span>::<span class="ident">prelude</span>::<span class="kw-2">*</span>;
<span class="kw">let</span> <span class="kw-2">mut</span> <span class="ident">vec</span> <span class="op">=</span> <span class="macro">vec</span><span class="macro">!</span>[];
<span class="ident">vec</span>.<span class="ident">par_extend</span>(<span class="number">0</span>..<span class="number">5</span>);
<span class="ident">vec</span>.<span class="ident">par_extend</span>((<span class="number">0</span>..<span class="number">5</span>).<span class="ident">into_par_iter</span>().<span class="ident">map</span>(<span class="op">|</span><span class="ident">i</span><span class="op">|</span> <span class="ident">i</span> <span class="op">*</span> <span class="ident">i</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">vec</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">0</span>, <span class="number">1</span>, <span class="number">4</span>, <span class="number">9</span>, <span class="number">16</span>]);</pre></div>
</div></div><span class='loading-content'>Loading content...</span>
<h2 id='foreign-impls' class='small-section-header'>Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a></h2><h3 id='impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/collect/mod.rs.html#122-163' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a vector with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend' class="method hidden"><code id='par_extend.v-1'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/collect/mod.rs.html#126-162' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/binary_heap/struct.BinaryHeap.html" title="struct alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#55-65' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a binary heap with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-1' class="method hidden"><code id='par_extend.v-2'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#59-64' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-BinaryHeap%3CT%3E' class='impl'><code class='in-band'>impl&lt;'a, T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/binary_heap/struct.BinaryHeap.html" title="struct alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-BinaryHeap%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#68-78' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a binary heap with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-2' class="method hidden"><code id='par_extend.v-3'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#72-77' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C(K%2C%20V)%3E-for-BTreeMap%3CK%2C%20V%3E' class='impl'><code class='in-band'>impl&lt;K, V&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C(K%2C%20V)%3E-for-BTreeMap%3CK%2C%20V%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#81-92' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a B-tree map with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-3' class="method hidden"><code id='par_extend.v-4'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#86-91' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-BTreeMap%3CK%2C%20V%3E' class='impl'><code class='in-band'>impl&lt;'a, K, V&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>K, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-BTreeMap%3CK%2C%20V%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#95-106' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a B-tree map with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-4' class="method hidden"><code id='par_extend.v-5'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>K, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#100-105' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#109-119' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a B-tree set with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-5' class="method hidden"><code id='par_extend.v-6'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#113-118' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-BTreeSet%3CT%3E' class='impl'><code class='in-band'>impl&lt;'a, T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-BTreeSet%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#122-132' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a B-tree set with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-6' class="method hidden"><code id='par_extend.v-7'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#126-131' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C(K%2C%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E' class='impl'><code class='in-band'>impl&lt;K, V, S&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C(K%2C%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#135-148' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a hash map with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-7' class="method hidden"><code id='par_extend.v-8'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#141-147' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E' class='impl'><code class='in-band'>impl&lt;'a, K, V, S&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>K, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C(%26%27a%20K%2C%20%26%27a%20V)%3E-for-HashMap%3CK%2C%20V%2C%20S%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#151-163' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a hash map with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-8' class="method hidden"><code id='par_extend.v-9'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>K, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#157-162' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CT%3E-for-HashSet%3CT%2C%20S%3E' class='impl'><code class='in-band'>impl&lt;T, S&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;T, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-HashSet%3CT%2C%20S%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#166-177' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a hash set with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-9' class="method hidden"><code id='par_extend.v-10'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#171-176' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-HashSet%3CT%2C%20S%3E' class='impl'><code class='in-band'>impl&lt;'a, T, S&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;T, S&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-HashSet%3CT%2C%20S%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#180-191' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a hash set with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-10' class="method hidden"><code id='par_extend.v-11'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#185-190' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/linked_list/struct.LinkedList.html" title="struct alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#194-214' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a linked list with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-11' class="method hidden"><code id='par_extend.v-12'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#198-213' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-LinkedList%3CT%3E' class='impl'><code class='in-band'>impl&lt;'a, T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/linked_list/struct.LinkedList.html" title="struct alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-LinkedList%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#217-227' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a linked list with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-12' class="method hidden"><code id='par_extend.v-13'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#221-226' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3Cchar%3E-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-ParallelExtend%3Cchar%3E-for-String' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#230-256' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a string with characters from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-13' class="method hidden"><code id='par_extend.v-14'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#231-255' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20char%3E-for-String' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-ParallelExtend%3C%26%27a%20char%3E-for-String' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#259-266' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a string with copied characters from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-14' class="method hidden"><code id='par_extend.v-15'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#260-265' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20str%3E-for-String' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-ParallelExtend%3C%26%27a%20str%3E-for-String' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#269-276' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a string with string slices from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-15' class="method hidden"><code id='par_extend.v-16'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = &amp;'a <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#270-275' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CString%3E-for-String' class='impl'><code class='in-band'>impl <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-ParallelExtend%3CString%3E-for-String' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#279-286' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a string with strings from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-16' class="method hidden"><code id='par_extend.v-17'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#280-285' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CCow%3C%27a%2C%20str%3E%3E-for-String' class='impl'><code class='in-band'>impl&lt;'a&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-ParallelExtend%3CCow%3C%27a%2C%20str%3E%3E-for-String' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#289-317' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a string with string slices from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-17' class="method hidden"><code id='par_extend.v-18'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#290-316' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E' class='impl'><code class='in-band'>impl&lt;T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#320-330' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a deque with items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-18' class="method hidden"><code id='par_extend.v-19'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#324-329' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-VecDeque%3CT%3E' class='impl'><code class='in-band'>impl&lt;'a, T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-VecDeque%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#333-343' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a deque with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-19' class="method hidden"><code id='par_extend.v-20'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#337-342' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C%26%27a%20T%3E-for-Vec%3CT%3E' class='impl'><code class='in-band'>impl&lt;'a, T&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt; for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3C%26%27a%20T%3E-for-Vec%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/extend.rs.html#349-359' title='goto source code'>[src]</a></h3><div class='docblock'><p>Extend a vector with copied items from a parallel iterator.</p>
</div><div class='impl-items'><h4 id='method.par_extend-20' class="method hidden"><code id='par_extend.v-21'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/extend.rs.html#353-358' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3C(A%2C%20B)%3E-for-(FromA%2C%20FromB)' class='impl'><code class='in-band'>impl&lt;A, B, FromA, FromB&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>FromA, FromB<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;FromA: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;FromB: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;B&gt;,&nbsp;</span></code><a href='#impl-ParallelExtend%3C(A%2C%20B)%3E-for-(FromA%2C%20FromB)' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/unzip.rs.html#413-426' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.par_extend-21' class="method hidden"><code id='par_extend.v-22'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, pi: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/unzip.rs.html#420-425' title='goto source code'>[src]</a></h4></div><h3 id='impl-ParallelExtend%3CEither%3CL%2C%20R%3E%3E-for-(A%2C%20B)' class='impl'><code class='in-band'>impl&lt;L, R, A, B&gt; <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="enum" href="../../rayon/iter/enum.Either.html" title="enum rayon::iter::Either">Either</a>&lt;L, R&gt;&gt; for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>A, B<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;L: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;L&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;R&gt;,&nbsp;</span></code><a href='#impl-ParallelExtend%3CEither%3CL%2C%20R%3E%3E-for-(A%2C%20B)' class='anchor'></a><a class='srclink' href='../../src/rayon/iter/unzip.rs.html#428-441' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.par_extend-22' class="method hidden"><code id='par_extend.v-23'>fn <a href='#method.par_extend' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, pi: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="enum" href="../../rayon/iter/enum.Either.html" title="enum rayon::iter::Either">Either</a>&lt;L, R&gt;&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/iter/unzip.rs.html#435-440' title='goto source code'>[src]</a></h4></div><span class='loading-content'>Loading content...</span>
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-ParallelExtend%3CT%3E' class='impl'><code class='in-band'>impl&lt;L, R, T&gt; ParallelExtend&lt;T&gt; for <a class="enum" href="../../rayon/iter/enum.Either.html" title="enum rayon::iter::Either">Either</a>&lt;L, R&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;L: <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="../../rayon/iter/trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href='#impl-ParallelExtend%3CT%3E' class='anchor'></a><a class='srclink' href='../../src/rayon/par_either.rs.html#59-74' title='goto source code'>[src]</a></h3><div class='docblock'><p><code>Either&lt;L, R&gt;</code> can be extended if both <code>L</code> and <code>R</code> are parallel extendable.</p>
</div><div class='impl-items'><h4 id='method.par_extend-23' class="method hidden"><code id='par_extend.v-24'>fn <a href='#method.par_extend-23' class='fnname'>par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../../rayon/iter/trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,&nbsp;</span></code><a class='srclink' href='../../src/rayon/par_either.rs.html#65-73' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../../implementors/rayon/iter/trait.ParallelExtend.js">
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "rayon";</script><script src="../../aliases.js"></script><script src="../../main.js"></script><script defer src="../../search-index.js"></script></body></html>