Files
GopherGate/target/doc/rayon/iter/trait.ParallelExtend.html
2026-02-26 12:00:21 -05:00

128 lines
63 KiB
HTML

<!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="`ParallelExtend` extends an existing collection with items from a `ParallelIterator`."><title>ParallelExtend in rayon::iter - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="rayon" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">ParallelExtend</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../rayon/index.html">rayon</a><span class="version">1.11.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Parallel<wbr>Extend</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#examples" title="Examples">Examples</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.par_extend" title="par_extend">par_extend</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-ParallelExtend%3C()%3E-for-()" title="()">()</a></li><li><a href="#impl-ParallelExtend%3CEither%3CL,+R%3E%3E-for-(A,+B)" title="(A, B)">(A, B)</a></li><li><a href="#impl-ParallelExtend%3C(A,+B)%3E-for-(FromA,+FromB)" title="(FromA, FromB)">(FromA, FromB)</a></li><li><a href="#impl-ParallelExtend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V%3E" title="BTreeMap&#60;K, V&#62;">BTreeMap&#60;K, V&#62;</a></li><li><a href="#impl-ParallelExtend%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E" title="BTreeMap&#60;K, V&#62;">BTreeMap&#60;K, V&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-BTreeSet%3CT%3E" title="BTreeSet&#60;T&#62;">BTreeSet&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E" title="BTreeSet&#60;T&#62;">BTreeSet&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-BinaryHeap%3CT%3E" title="BinaryHeap&#60;T&#62;">BinaryHeap&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E" title="BinaryHeap&#60;T&#62;">BinaryHeap&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3C(%26K,+%26V)%3E-for-HashMap%3CK,+V,+S%3E" title="HashMap&#60;K, V, S&#62;">HashMap&#60;K, V, S&#62;</a></li><li><a href="#impl-ParallelExtend%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E" title="HashMap&#60;K, V, S&#62;">HashMap&#60;K, V, S&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-HashSet%3CT,+S%3E" title="HashSet&#60;T, S&#62;">HashSet&#60;T, S&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-HashSet%3CT,+S%3E" title="HashSet&#60;T, S&#62;">HashSet&#60;T, S&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-LinkedList%3CT%3E" title="LinkedList&#60;T&#62;">LinkedList&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E" title="LinkedList&#60;T&#62;">LinkedList&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26OsStr%3E-for-OsString" title="OsString">OsString</a></li><li><a href="#impl-ParallelExtend%3CCow%3C'a,+OsStr%3E%3E-for-OsString" title="OsString">OsString</a></li><li><a href="#impl-ParallelExtend%3COsString%3E-for-OsString" title="OsString">OsString</a></li><li><a href="#impl-ParallelExtend%3C%26char%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3C%26str%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3CBox%3Cstr%3E%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3CCow%3C'a,+str%3E%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3CString%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3Cchar%3E-for-String" title="String">String</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-Vec%3CT%3E" title="Vec&#60;T&#62;">Vec&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E" title="Vec&#60;T&#62;">Vec&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3C%26T%3E-for-VecDeque%3CT%3E" title="VecDeque&#60;T&#62;">VecDeque&#60;T&#62;</a></li><li><a href="#impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E" title="VecDeque&#60;T&#62;">VecDeque&#60;T&#62;</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In rayon::<wbr>iter</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">rayon</a>::<wbr><a href="index.html">iter</a></div><h1>Trait <span class="trait">Parallel<wbr>Extend</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/rayon/iter/mod.rs.html#3333-3353">Source</a> </span></div><pre class="rust item-decl"><code>pub trait ParallelExtend&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div>{
// Required method
fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)
<span class="where">where I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;</span>;
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p><code>ParallelExtend</code> extends an existing collection with items from a <a href="trait.ParallelIterator.html" title="trait rayon::iter::ParallelIterator"><code>ParallelIterator</code></a>.</p>
<h2 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h2>
<p>Implementing <code>ParallelExtend</code> for your type:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>rayon::prelude::<span class="kw-2">*</span>;
<span class="kw">struct </span>BlackHole {
mass: usize,
}
<span class="kw">impl</span>&lt;T: Send&gt; ParallelExtend&lt;T&gt; <span class="kw">for </span>BlackHole {
<span class="kw">fn </span>par_extend&lt;I&gt;(<span class="kw-2">&amp;mut </span><span class="self">self</span>, par_iter: I)
<span class="kw">where </span>I: IntoParallelIterator&lt;Item = T&gt;
{
<span class="kw">let </span>par_iter = par_iter.into_par_iter();
<span class="self">self</span>.mass += par_iter.count() * size_of::&lt;T&gt;();
}
}
<span class="kw">let </span><span class="kw-2">mut </span>bh = BlackHole { mass: <span class="number">0 </span>};
bh.par_extend(<span class="number">0i32</span>..<span class="number">1000</span>);
<span class="macro">assert_eq!</span>(bh.mass, <span class="number">4000</span>);
bh.par_extend(<span class="number">0i64</span>..<span class="number">10</span>);
<span class="macro">assert_eq!</span>(bh.mass, <span class="number">4080</span>);</code></pre></div></div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.par_extend" class="method"><a class="src rightside" href="../../src/rayon/iter/mod.rs.html#3350-3352">Source</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></summary><div class="docblock"><p>Extends an instance of the collection with the elements drawn
from the parallel iterator <code>par_iter</code>.</p>
<h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>rayon::prelude::<span class="kw-2">*</span>;
<span class="kw">let </span><span class="kw-2">mut </span>vec = <span class="macro">vec!</span>[];
vec.par_extend(<span class="number">0</span>..<span class="number">5</span>);
vec.par_extend((<span class="number">0</span>..<span class="number">5</span>).into_par_iter().map(|i| i * i));
<span class="macro">assert_eq!</span>(vec, [<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>]);</code></pre></div></div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.93.1/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3Cchar%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#414-425">Source</a><a href="#impl-ParallelExtend%3Cchar%3E-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.char.html">char</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with characters from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#415-424">Source</a><a href="#method.par_extend" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.char.html">char</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C()%3E-for-()" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#612-619">Source</a><a href="#impl-ParallelExtend%3C()%3E-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a></h3><div class="docblock"><p>Collapses all unit items from a parallel iterator into one.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-1" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#613-618">Source</a><a href="#method.par_extend-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.unit.html">()</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CBox%3Cstr%3E%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#523-530">Source</a><a href="#impl-ParallelExtend%3CBox%3Cstr%3E%3E-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with boxed strings from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-2" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#524-529">Source</a><a href="#method.par_extend-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt;&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CString%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#513-520">Source</a><a href="#impl-ParallelExtend%3CString%3E-for-String" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with strings from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-3" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#514-519">Source</a><a href="#method.par_extend-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3COsString%3E-for-OsString" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#394-401">Source</a><a href="#impl-ParallelExtend%3COsString%3E-for-OsString" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h3><div class="docblock"><p>Extends an OS-string with strings from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-4" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#395-400">Source</a><a href="#method.par_extend-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26char%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#428-435">Source</a><a href="#impl-ParallelExtend%3C%26char%3E-for-String" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.char.html">char</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with copied characters from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-5" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#429-434">Source</a><a href="#method.par_extend-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.char.html">char</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26str%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#503-510">Source</a><a href="#impl-ParallelExtend%3C%26str%3E-for-String" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with string slices from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-6" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#504-509">Source</a><a href="#method.par_extend-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26OsStr%3E-for-OsString" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#384-391">Source</a><a href="#impl-ParallelExtend%3C%26OsStr%3E-for-OsString" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;&amp;'a <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h3><div class="docblock"><p>Extends an OS-string with string slices from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-7" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#385-390">Source</a><a href="#method.par_extend-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = &amp;'a <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CCow%3C'a,+str%3E%3E-for-String" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#533-540">Source</a><a href="#impl-ParallelExtend%3CCow%3C'a,+str%3E%3E-for-String" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></h3><div class="docblock"><p>Extends a string with string slices from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-8" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#534-539">Source</a><a href="#method.par_extend-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.str.html">str</a>&gt;&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CCow%3C'a,+OsStr%3E%3E-for-OsString" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#404-411">Source</a><a href="#impl-ParallelExtend%3CCow%3C'a,+OsStr%3E%3E-for-OsString" class="anchor">§</a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>&gt;&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsString.html" title="struct std::ffi::os_str::OsString">OsString</a></h3><div class="docblock"><p>Extends an OS-string with string slices from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-9" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#405-410">Source</a><a href="#method.par_extend-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/1.93.1/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/ffi/os_str/struct.OsStr.html" title="struct std::ffi::os_str::OsStr">OsStr</a>&gt;&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#188-199">Source</a><a href="#impl-ParallelExtend%3C(%26K,+%26V)%3E-for-BTreeMap%3CK,+V%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a V</a>)&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'a,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'a,</div></h3><div class="docblock"><p>Extends a B-tree map with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-10" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#193-198">Source</a><a href="#method.par_extend-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = (<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a V</a>)&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C(%26K,+%26V)%3E-for-HashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#244-256">Source</a><a href="#impl-ParallelExtend%3C(%26K,+%26V)%3E-for-HashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, K, V, S&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;(<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a V</a>)&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'a,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + 'a,
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a hash map with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-11" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#250-255">Source</a><a href="#method.par_extend-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = (<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a K</a>, <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a V</a>)&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-BinaryHeap%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#161-171">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-BinaryHeap%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/binary_heap/struct.BinaryHeap.html" title="struct alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3><div class="docblock"><p>Extends a binary heap with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-12" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#165-170">Source</a><a href="#method.par_extend-12" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-BTreeSet%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#215-225">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-BTreeSet%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;T&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3><div class="docblock"><p>Extends a B-tree set with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-13" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#219-224">Source</a><a href="#method.par_extend-13" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-LinkedList%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#301-311">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-LinkedList%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/linked_list/struct.LinkedList.html" title="struct alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3><div class="docblock"><p>Extends a linked list with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-14" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#305-310">Source</a><a href="#method.par_extend-14" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-VecDeque%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#556-566">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-VecDeque%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3><div class="docblock"><p>Extends a deque with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-15" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#560-565">Source</a><a href="#method.par_extend-15" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-Vec%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#599-609">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-Vec%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,</div></h3><div class="docblock"><p>Extends a vector with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-16" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#603-608">Source</a><a href="#method.par_extend-16" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C%26T%3E-for-HashSet%3CT,+S%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#273-284">Source</a><a href="#impl-ParallelExtend%3C%26T%3E-for-HashSet%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'a, T, S&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;T, S&gt;<div class="where">where
T: 'a + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a hash set with copied items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-17" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#278-283">Source</a><a href="#method.par_extend-17" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.reference.html">&amp;'a T</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C(A,+B)%3E-for-(FromA,+FromB)" class="impl"><a class="src rightside" href="../../src/rayon/iter/unzip.rs.html#412-425">Source</a><a href="#impl-ParallelExtend%3C(A,+B)%3E-for-(FromA,+FromB)" class="anchor">§</a><h3 class="code-header">impl&lt;A, B, FromA, FromB&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(A, B)</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(FromA, FromB)</a><div class="where">where
A: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
B: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
FromA: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;A&gt;,
FromB: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;B&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.par_extend-18" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/unzip.rs.html#419-424">Source</a><a href="#method.par_extend-18" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, pi: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(A, B)</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#174-185">Source</a><a href="#impl-ParallelExtend%3C(K,+V)%3E-for-BTreeMap%3CK,+V%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/btree/map/struct.BTreeMap.html" title="struct alloc::collections::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a B-tree map with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-19" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#179-184">Source</a><a href="#method.par_extend-19" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#228-241">Source</a><a href="#impl-ParallelExtend%3C(K,+V)%3E-for-HashMap%3CK,+V,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V, S&gt;<div class="where">where
K: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
V: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a hash map with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-20" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#234-240">Source</a><a href="#method.par_extend-20" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.tuple.html">(K, V)</a>&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CEither%3CL,+R%3E%3E-for-(A,+B)" class="impl"><a class="src rightside" href="../../src/rayon/iter/unzip.rs.html#427-440">Source</a><a href="#impl-ParallelExtend%3CEither%3CL,+R%3E%3E-for-(A,+B)" class="anchor">§</a><h3 class="code-header">impl&lt;L, R, A, B&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;<a class="enum" href="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/1.93.1/std/primitive.tuple.html">(A, B)</a><div class="where">where
L: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
R: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
A: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;L&gt;,
B: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;R&gt;,</div></h3></section></summary><div class="impl-items"><section id="method.par_extend-21" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/unzip.rs.html#434-439">Source</a><a href="#method.par_extend-21" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, pi: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = <a class="enum" href="enum.Either.html" title="enum rayon::iter::Either">Either</a>&lt;L, R&gt;&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#148-158">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-BinaryHeap%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/binary_heap/struct.BinaryHeap.html" title="struct alloc::collections::binary_heap::BinaryHeap">BinaryHeap</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a binary heap with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-22" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#152-157">Source</a><a href="#method.par_extend-22" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#202-212">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-BTreeSet%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/btree/set/struct.BTreeSet.html" title="struct alloc::collections::btree::set::BTreeSet">BTreeSet</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a B-tree set with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-23" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#206-211">Source</a><a href="#method.par_extend-23" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#287-298">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-LinkedList%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/linked_list/struct.LinkedList.html" title="struct alloc::collections::linked_list::LinkedList">LinkedList</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a linked list with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-24" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#291-297">Source</a><a href="#method.par_extend-24" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#543-553">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-VecDeque%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/collections/vec_deque/struct.VecDeque.html" title="struct alloc::collections::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a deque with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-25" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#547-552">Source</a><a href="#method.par_extend-25" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#569-596">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-Vec%3CT%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a vector with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-26" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#573-595">Source</a><a href="#method.par_extend-26" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ParallelExtend%3CT%3E-for-HashSet%3CT,+S%3E" class="impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#259-270">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-HashSet%3CT,+S%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, S&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="struct" href="https://doc.rust-lang.org/1.93.1/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;T, S&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,
S: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/hash/trait.BuildHasher.html" title="trait core::hash::BuildHasher">BuildHasher</a> + <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></h3><div class="docblock"><p>Extends a hash set with items from a parallel iterator.</p>
</div></section></summary><div class="impl-items"><section id="method.par_extend-27" class="method trait-impl"><a class="src rightside" href="../../src/rayon/iter/extend.rs.html#264-269">Source</a><a href="#method.par_extend-27" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.par_extend" class="fn">par_extend</a>&lt;I&gt;(&amp;mut self, par_iter: I)<div class="where">where
I: <a class="trait" href="trait.IntoParallelIterator.html" title="trait rayon::iter::IntoParallelIterator">IntoParallelIterator</a>&lt;Item = T&gt;,</div></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-ParallelExtend%3CT%3E-for-Either%3CL,+R%3E" class="impl"><a class="src rightside" href="../../src/rayon/par_either.rs.html#59-74">Source</a><a href="#impl-ParallelExtend%3CT%3E-for-Either%3CL,+R%3E" class="anchor">§</a><h3 class="code-header">impl&lt;L, R, T&gt; <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt; for <a class="enum" href="enum.Either.html" title="enum rayon::iter::Either">Either</a>&lt;L, R&gt;<div class="where">where
L: <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt;,
R: <a class="trait" href="trait.ParallelExtend.html" title="trait rayon::iter::ParallelExtend">ParallelExtend</a>&lt;T&gt;,
T: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,</div></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></section></div><script src="../../trait.impl/rayon/iter/trait.ParallelExtend.js" data-ignore-extern-crates="alloc,std,either" async></script></section></div></main></body></html>