rusty_snek_gaem/target/doc/rayon/str/trait.ParallelString.html
2018-10-28 21:14:05 -05:00

140 lines
32 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `ParallelString` trait in crate `rayon`."><meta name="keywords" content="rust, rustlang, rust-lang, ParallelString"><title>rayon::str::ParallelString - 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></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><p class='location'>Trait ParallelString</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.as_parallel_string">as_parallel_string</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.par_chars">par_chars</a><a href="#method.par_char_indices">par_char_indices</a><a href="#method.par_bytes">par_bytes</a><a href="#method.par_encode_utf16">par_encode_utf16</a><a href="#method.par_split">par_split</a><a href="#method.par_split_terminator">par_split_terminator</a><a href="#method.par_lines">par_lines</a><a href="#method.par_split_whitespace">par_split_whitespace</a><a href="#method.par_matches">par_matches</a><a href="#method.par_match_indices">par_match_indices</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-ParallelString">str</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'>str</a></p><script>window.sidebarCurrent = {name: 'ParallelString', 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"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press S to search, ? for more options…" type="search"><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='in-band'>Trait <a href='../index.html'>rayon</a>::<wbr><a href='index.html'>str</a>::<wbr><a class="trait" href=''>ParallelString</a></span><span class='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../../src/rayon/str.rs.html#60-248' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><pre class='rust trait'>pub trait ParallelString {
fn <a href='#tymethod.as_parallel_string' class='fnname'>as_parallel_string</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>;
fn <a href='#method.par_chars' class='fnname'>par_chars</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Chars.html" title="struct rayon::str::Chars">Chars</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_char_indices' class='fnname'>par_char_indices</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.CharIndices.html" title="struct rayon::str::CharIndices">CharIndices</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_bytes' class='fnname'>par_bytes</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Bytes.html" title="struct rayon::str::Bytes">Bytes</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_encode_utf16' class='fnname'>par_encode_utf16</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.EncodeUtf16.html" title="struct rayon::str::EncodeUtf16">EncodeUtf16</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_split' class='fnname'>par_split</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, separator: P) -&gt; <a class="struct" href="../../rayon/str/struct.Split.html" title="struct rayon::str::Split">Split</a>&lt;P&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.par_split_terminator' class='fnname'>par_split_terminator</a>&lt;P:&nbsp;Pattern&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self, <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;terminator: P<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="struct" href="../../rayon/str/struct.SplitTerminator.html" title="struct rayon::str::SplitTerminator">SplitTerminator</a>&lt;P&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.par_lines' class='fnname'>par_lines</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Lines.html" title="struct rayon::str::Lines">Lines</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_split_whitespace' class='fnname'>par_split_whitespace</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.SplitWhitespace.html" title="struct rayon::str::SplitWhitespace">SplitWhitespace</a> { ... }
<div class='item-spacer'></div> fn <a href='#method.par_matches' class='fnname'>par_matches</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.Matches.html" title="struct rayon::str::Matches">Matches</a>&lt;P&gt; { ... }
<div class='item-spacer'></div> fn <a href='#method.par_match_indices' class='fnname'>par_match_indices</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.MatchIndices.html" title="struct rayon::str::MatchIndices">MatchIndices</a>&lt;P&gt; { ... }
}</pre></div><div class='docblock'><p>Parallel extensions for strings.</p>
</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.as_parallel_string' class='method'><span id='as_parallel_string.v' class='invisible'><code>fn <a href='#tymethod.as_parallel_string' class='fnname'>as_parallel_string</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></h3><div class='docblock'><p>Returns a plain string slice, which is used to implement the rest of
the parallel methods.</p>
</div></div>
<h2 id='provided-methods' class='small-section-header'>
Provided Methods<a href='#provided-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='method.par_chars' class='method'><span id='par_chars.v' class='invisible'><code>fn <a href='#method.par_chars' class='fnname'>par_chars</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Chars.html" title="struct rayon::str::Chars">Chars</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over the characters of a string.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<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="ident">max</span> <span class="op">=</span> <span class="string">&quot;hello&quot;</span>.<span class="ident">par_chars</span>().<span class="ident">max_by_key</span>(<span class="op">|</span><span class="ident">c</span><span class="op">|</span> <span class="kw-2">*</span><span class="ident">c</span> <span class="kw">as</span> <span class="ident">i32</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="prelude-val">Some</span>(<span class="string">&#39;o&#39;</span>), <span class="ident">max</span>);</pre>
</div><h3 id='method.par_char_indices' class='method'><span id='par_char_indices.v' class='invisible'><code>fn <a href='#method.par_char_indices' class='fnname'>par_char_indices</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.CharIndices.html" title="struct rayon::str::CharIndices">CharIndices</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over the characters of a string, with their positions.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<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="ident">min</span> <span class="op">=</span> <span class="string">&quot;hello&quot;</span>.<span class="ident">par_char_indices</span>().<span class="ident">min_by_key</span>(<span class="op">|</span><span class="kw-2">&amp;</span>(<span class="ident">_i</span>, <span class="ident">c</span>)<span class="op">|</span> <span class="ident">c</span> <span class="kw">as</span> <span class="ident">i32</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="prelude-val">Some</span>((<span class="number">1</span>, <span class="string">&#39;e&#39;</span>)), <span class="ident">min</span>);</pre>
</div><h3 id='method.par_bytes' class='method'><span id='par_bytes.v' class='invisible'><code>fn <a href='#method.par_bytes' class='fnname'>par_bytes</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Bytes.html" title="struct rayon::str::Bytes">Bytes</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over the bytes of a string.</p>
<p>Note that multi-byte sequences (for code points greater than <code>U+007F</code>)
are produced as separate items, but will not be split across threads.
If you would prefer an indexed iterator without that guarantee, consider
<code>string.as_bytes().par_iter().cloned()</code> instead.</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<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="ident">max</span> <span class="op">=</span> <span class="string">&quot;hello&quot;</span>.<span class="ident">par_bytes</span>().<span class="ident">max</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="prelude-val">Some</span>(<span class="string">b&#39;o&#39;</span>), <span class="ident">max</span>);</pre>
</div><h3 id='method.par_encode_utf16' class='method'><span id='par_encode_utf16.v' class='invisible'><code>fn <a href='#method.par_encode_utf16' class='fnname'>par_encode_utf16</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.EncodeUtf16.html" title="struct rayon::str::EncodeUtf16">EncodeUtf16</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over a string encoded as UTF-16.</p>
<p>Note that surrogate pairs (for code points greater than <code>U+FFFF</code>) are
produced as separate items, but will not be split across threads.</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<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="ident">max</span> <span class="op">=</span> <span class="string">&quot;hello&quot;</span>.<span class="ident">par_encode_utf16</span>().<span class="ident">max</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="prelude-val">Some</span>(<span class="string">b&#39;o&#39;</span> <span class="kw">as</span> <span class="ident">u16</span>), <span class="ident">max</span>);
<span class="kw">let</span> <span class="ident">text</span> <span class="op">=</span> <span class="string">&quot;Zażółć gęślą jaźń&quot;</span>;
<span class="kw">let</span> <span class="ident">utf8_len</span> <span class="op">=</span> <span class="ident">text</span>.<span class="ident">len</span>();
<span class="kw">let</span> <span class="ident">utf16_len</span> <span class="op">=</span> <span class="ident">text</span>.<span class="ident">par_encode_utf16</span>().<span class="ident">count</span>();
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">utf16_len</span> <span class="op">&lt;=</span> <span class="ident">utf8_len</span>);</pre>
</div><h3 id='method.par_split' class='method'><span id='par_split.v' class='invisible'><code>fn <a href='#method.par_split' class='fnname'>par_split</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, separator: P) -&gt; <a class="struct" href="../../rayon/str/struct.Split.html" title="struct rayon::str::Split">Split</a>&lt;P&gt;</code></span></h3><div class='docblock'><p>Returns a parallel iterator over substrings separated by a
given character or predicate, similar to <code>str::split</code>.</p>
<p>Note: the <code>Pattern</code> trait is private, for use only by Rayon itself.
It is implemented for <code>char</code> and any <code>F: Fn(char) -&gt; bool + Sync + Send</code>.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<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="ident">total</span> <span class="op">=</span> <span class="string">&quot;1, 2, buckle, 3, 4, door&quot;</span>
.<span class="ident">par_split</span>(<span class="string">&#39;,&#39;</span>)
.<span class="ident">filter_map</span>(<span class="op">|</span><span class="ident">s</span><span class="op">|</span> <span class="ident">s</span>.<span class="ident">trim</span>().<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">i32</span><span class="op">&gt;</span>().<span class="ident">ok</span>())
.<span class="ident">sum</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">10</span>, <span class="ident">total</span>);</pre>
</div><h3 id='method.par_split_terminator' class='method'><span id='par_split_terminator.v' class='invisible'><code>fn <a href='#method.par_split_terminator' class='fnname'>par_split_terminator</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, terminator: P) -&gt; <a class="struct" href="../../rayon/str/struct.SplitTerminator.html" title="struct rayon::str::SplitTerminator">SplitTerminator</a>&lt;P&gt;</code></span></h3><div class='docblock'><p>Returns a parallel iterator over substrings terminated by a
given character or predicate, similar to <code>str::split_terminator</code>.
It's equivalent to <code>par_split</code>, except it doesn't produce an empty
substring after a trailing terminator.</p>
<p>Note: the <code>Pattern</code> trait is private, for use only by Rayon itself.
It is implemented for <code>char</code> and any <code>F: Fn(char) -&gt; bool + Sync + Send</code>.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<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="ident">parts</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="kw">_</span><span class="op">&gt;</span> <span class="op">=</span> <span class="string">&quot;((1 + 3) * 2)&quot;</span>
.<span class="ident">par_split_terminator</span>(<span class="op">|</span><span class="ident">c</span><span class="op">|</span> <span class="ident">c</span> <span class="op">==</span> <span class="string">&#39;(&#39;</span> <span class="op">||</span> <span class="ident">c</span> <span class="op">==</span> <span class="string">&#39;)&#39;</span>)
.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="string">&quot;&quot;</span>, <span class="string">&quot;&quot;</span>, <span class="string">&quot;1 + 3&quot;</span>, <span class="string">&quot; * 2&quot;</span>], <span class="ident">parts</span>);</pre>
</div><h3 id='method.par_lines' class='method'><span id='par_lines.v' class='invisible'><code>fn <a href='#method.par_lines' class='fnname'>par_lines</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Lines.html" title="struct rayon::str::Lines">Lines</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over the lines of a string, ending with an
optional carriage return and with a newline (<code>\r\n</code> or just <code>\n</code>).
The final line ending is optional, and line endings are not included in
the output strings.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<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="ident">lengths</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="kw">_</span><span class="op">&gt;</span> <span class="op">=</span> <span class="string">&quot;hello world\nfizbuzz&quot;</span>
.<span class="ident">par_lines</span>()
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">l</span><span class="op">|</span> <span class="ident">l</span>.<span class="ident">len</span>())
.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="macro">vec</span><span class="macro">!</span>[<span class="number">11</span>, <span class="number">7</span>], <span class="ident">lengths</span>);</pre>
</div><h3 id='method.par_split_whitespace' class='method'><span id='par_split_whitespace.v' class='invisible'><code>fn <a href='#method.par_split_whitespace' class='fnname'>par_split_whitespace</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.SplitWhitespace.html" title="struct rayon::str::SplitWhitespace">SplitWhitespace</a></code></span></h3><div class='docblock'><p>Returns a parallel iterator over the sub-slices of a string that are
separated by any amount of whitespace.</p>
<p>As with <code>str::split_whitespace</code>, 'whitespace' is defined according to
the terms of the Unicode Derived Core Property <code>White_Space</code>.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<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="ident">longest</span> <span class="op">=</span> <span class="string">&quot;which is the longest word?&quot;</span>
.<span class="ident">par_split_whitespace</span>()
.<span class="ident">max_by_key</span>(<span class="op">|</span><span class="ident">word</span><span class="op">|</span> <span class="ident">word</span>.<span class="ident">len</span>());
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="prelude-val">Some</span>(<span class="string">&quot;longest&quot;</span>), <span class="ident">longest</span>);</pre>
</div><h3 id='method.par_matches' class='method'><span id='par_matches.v' class='invisible'><code>fn <a href='#method.par_matches' class='fnname'>par_matches</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.Matches.html" title="struct rayon::str::Matches">Matches</a>&lt;P&gt;</code></span></h3><div class='docblock'><p>Returns a parallel iterator over substrings that match a
given character or predicate, similar to <code>str::matches</code>.</p>
<p>Note: the <code>Pattern</code> trait is private, for use only by Rayon itself.
It is implemented for <code>char</code> and any <code>F: Fn(char) -&gt; bool + Sync + Send</code>.</p>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<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="ident">total</span> <span class="op">=</span> <span class="string">&quot;1, 2, buckle, 3, 4, door&quot;</span>
.<span class="ident">par_matches</span>(<span class="ident">char</span>::<span class="ident">is_numeric</span>)
.<span class="ident">map</span>(<span class="op">|</span><span class="ident">s</span><span class="op">|</span> <span class="ident">s</span>.<span class="ident">parse</span>::<span class="op">&lt;</span><span class="ident">i32</span><span class="op">&gt;</span>().<span class="ident">expect</span>(<span class="string">&quot;digit&quot;</span>))
.<span class="ident">sum</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">10</span>, <span class="ident">total</span>);</pre>
</div><h3 id='method.par_match_indices' class='method'><span id='par_match_indices.v' class='invisible'><code>fn <a href='#method.par_match_indices' class='fnname'>par_match_indices</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.MatchIndices.html" title="struct rayon::str::MatchIndices">MatchIndices</a>&lt;P&gt;</code></span></h3><div class='docblock'><p>Returns a parallel iterator over substrings that match a given character
or predicate, with their positions, similar to <code>str::match_indices</code>.</p>
<p>Note: the <code>Pattern</code> trait is private, for use only by Rayon itself.
It is implemented for <code>char</code> and any <code>F: Fn(char) -&gt; bool + Sync + Send</code>.</p>
<h1 id="examples-9" class="section-header"><a href="#examples-9">Examples</a></h1>
<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="ident">digits</span>: <span class="ident">Vec</span><span class="op">&lt;</span><span class="kw">_</span><span class="op">&gt;</span> <span class="op">=</span> <span class="string">&quot;1, 2, buckle, 3, 4, door&quot;</span>
.<span class="ident">par_match_indices</span>(<span class="ident">char</span>::<span class="ident">is_numeric</span>)
.<span class="ident">collect</span>();
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">digits</span>, <span class="macro">vec</span><span class="macro">!</span>[(<span class="number">0</span>, <span class="string">&quot;1&quot;</span>), (<span class="number">3</span>, <span class="string">&quot;2&quot;</span>), (<span class="number">14</span>, <span class="string">&quot;3&quot;</span>), (<span class="number">17</span>, <span class="string">&quot;4&quot;</span>)]);</pre>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-ParallelString' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../../rayon/str/trait.ParallelString.html" title="trait rayon::str::ParallelString">ParallelString</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-ParallelString' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#250-255' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.as_parallel_string' class="method"><span id='as_parallel_string.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.as_parallel_string' class='fnname'>as_parallel_string</a>(&amp;self) -&gt; &amp;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#252-254' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_chars-1' class="method"><span id='par_chars.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_chars' class='fnname'>par_chars</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Chars.html" title="struct rayon::str::Chars">Chars</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#74-76' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_char_indices-1' class="method"><span id='par_char_indices.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_char_indices' class='fnname'>par_char_indices</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.CharIndices.html" title="struct rayon::str::CharIndices">CharIndices</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#87-89' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_bytes-1' class="method"><span id='par_bytes.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_bytes' class='fnname'>par_bytes</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Bytes.html" title="struct rayon::str::Bytes">Bytes</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#105-107' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_encode_utf16-1' class="method"><span id='par_encode_utf16.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_encode_utf16' class='fnname'>par_encode_utf16</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.EncodeUtf16.html" title="struct rayon::str::EncodeUtf16">EncodeUtf16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#127-129' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_split-1' class="method"><span id='par_split.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_split' class='fnname'>par_split</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, separator: P) -&gt; <a class="struct" href="../../rayon/str/struct.Split.html" title="struct rayon::str::Split">Split</a>&lt;P&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#147-149' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_split_terminator-1' class="method"><span id='par_split_terminator.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_split_terminator' class='fnname'>par_split_terminator</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, terminator: P) -&gt; <a class="struct" href="../../rayon/str/struct.SplitTerminator.html" title="struct rayon::str::SplitTerminator">SplitTerminator</a>&lt;P&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#168-170' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_lines-1' class="method"><span id='par_lines.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_lines' class='fnname'>par_lines</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.Lines.html" title="struct rayon::str::Lines">Lines</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#187-189' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_split_whitespace-1' class="method"><span id='par_split_whitespace.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_split_whitespace' class='fnname'>par_split_whitespace</a>(&amp;self) -&gt; <a class="struct" href="../../rayon/str/struct.SplitWhitespace.html" title="struct rayon::str::SplitWhitespace">SplitWhitespace</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#206-208' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_matches-1' class="method"><span id='par_matches.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_matches' class='fnname'>par_matches</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.Matches.html" title="struct rayon::str::Matches">Matches</a>&lt;P&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#226-228' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><h4 id='method.par_match_indices-1' class="method"><span id='par_match_indices.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../../rayon/str/trait.ParallelString.html#method.par_match_indices' class='fnname'>par_match_indices</a>&lt;P:&nbsp;Pattern&gt;(&amp;self, pattern: P) -&gt; <a class="struct" href="../../rayon/str/struct.MatchIndices.html" title="struct rayon::str::MatchIndices">MatchIndices</a>&lt;P&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../../src/rayon/str.rs.html#245-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><ul class='item-list' id='implementors-list'></ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
src="../../implementors/rayon/str/trait.ParallelString.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>