Skip to content

Commit

Permalink
deploy: 8fdb4f8
Browse files Browse the repository at this point in the history
  • Loading branch information
calebzulawski committed Aug 29, 2024
1 parent 56a5f85 commit 6486b56
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 26 deletions.
16 changes: 8 additions & 8 deletions core_simd/simd/struct.Mask.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
<p>The layout of this type is unspecified, and may change between platforms
and/or Rust versions, and code should not assume that it is equivalent to
<code>[T; N]</code>.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#422-564">source</a><a href="#impl-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, N&gt;<div class="where">where
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#421-563">source</a><a href="#impl-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl&lt;T, const N: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, N&gt;<div class="where">where
T: <a class="trait" href="trait.MaskElement.html" title="trait core_simd::simd::MaskElement">MaskElement</a>,
<a class="struct" href="struct.LaneCount.html" title="struct core_simd::simd::LaneCount">LaneCount</a>&lt;N&gt;: <a class="trait" href="trait.SupportedLaneCount.html" title="trait core_simd::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reverse" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#430-433">source</a><h4 class="code-header">pub fn <a href="#method.reverse" class="fn">reverse</a>(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Reverse the order of the elements in the mask.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rotate_elements_left" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#440-443">source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_left" class="fn">rotate_elements_left</a>&lt;const OFFSET: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Rotates the mask such that the first <code>OFFSET</code> elements of the slice move to the end
<a class="struct" href="struct.LaneCount.html" title="struct core_simd::simd::LaneCount">LaneCount</a>&lt;N&gt;: <a class="trait" href="trait.SupportedLaneCount.html" title="trait core_simd::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.reverse" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#429-432">source</a><h4 class="code-header">pub fn <a href="#method.reverse" class="fn">reverse</a>(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Reverse the order of the elements in the mask.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rotate_elements_left" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#439-442">source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_left" class="fn">rotate_elements_left</a>&lt;const OFFSET: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Rotates the mask such that the first <code>OFFSET</code> elements of the slice move to the end
while the last <code>self.len() - OFFSET</code> elements move to the front. After calling <code>rotate_elements_left</code>,
the element previously at index <code>OFFSET</code> will become the first element in the slice.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.rotate_elements_right" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#450-453">source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_right" class="fn">rotate_elements_right</a>&lt;const OFFSET: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Rotates the mask such that the first <code>self.len() - OFFSET</code> elements of the mask move to
</div></details><details class="toggle method-toggle" open><summary><section id="method.rotate_elements_right" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#449-452">source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_right" class="fn">rotate_elements_right</a>&lt;const OFFSET: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; Self</h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Rotates the mask such that the first <code>self.len() - OFFSET</code> elements of the mask move to
the end while the last <code>OFFSET</code> elements move to the front. After calling <code>rotate_elements_right</code>,
the element previously at index <code>self.len() - OFFSET</code> will become the first element in the slice.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.interleave" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#475-479">source</a><h4 class="code-header">pub fn <a href="#method.interleave" class="fn">interleave</a>(self, other: Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">(Self, Self)</a></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Interleave two masks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.interleave" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#474-478">source</a><h4 class="code-header">pub fn <a href="#method.interleave" class="fn">interleave</a>(self, other: Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">(Self, Self)</a></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Interleave two masks.</p>
<p>The resulting masks contain elements taken alternatively from <code>self</code> and <code>other</code>, first
filling the first result, and then the second.</p>
<p>The reverse of this operation is <a href="struct.Mask.html#method.deinterleave" title="method core_simd::simd::Mask::deinterleave"><code>Mask::deinterleave</code></a>.</p>
Expand All @@ -25,7 +25,7 @@
<span class="kw">let </span>(x, y) = a.interleave(b);
<span class="macro">assert_eq!</span>(x.to_array(), [<span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>]);
<span class="macro">assert_eq!</span>(y.to_array(), [<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.deinterleave" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#504-513">source</a><h4 class="code-header">pub fn <a href="#method.deinterleave" class="fn">deinterleave</a>(self, other: Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">(Self, Self)</a></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Deinterleave two masks.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.deinterleave" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#503-512">source</a><h4 class="code-header">pub fn <a href="#method.deinterleave" class="fn">deinterleave</a>(self, other: Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.tuple.html">(Self, Self)</a></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Deinterleave two masks.</p>
<p>The first result takes every other element of <code>self</code> and then <code>other</code>, starting with
the first element.</p>
<p>The second result takes every other element of <code>self</code> and then <code>other</code>, starting with
Expand All @@ -37,15 +37,15 @@
<span class="kw">let </span>(x, y) = a.deinterleave(b);
<span class="macro">assert_eq!</span>(x.to_array(), [<span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);
<span class="macro">assert_eq!</span>(y.to_array(), [<span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.resize" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#531-543">source</a><h4 class="code-header">pub fn <a href="#method.resize" class="fn">resize</a>&lt;const M: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, M&gt;<div class="where">where
</div></details><details class="toggle method-toggle" open><summary><section id="method.resize" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#530-542">source</a><h4 class="code-header">pub fn <a href="#method.resize" class="fn">resize</a>&lt;const M: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.bool.html">bool</a>) -&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, M&gt;<div class="where">where
<a class="struct" href="struct.LaneCount.html" title="struct core_simd::simd::LaneCount">LaneCount</a>&lt;M&gt;: <a class="trait" href="trait.SupportedLaneCount.html" title="trait core_simd::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Resize a mask.</p>
<p>If <code>M</code> &gt; <code>N</code>, extends the length of a mask, setting the new elements to <code>value</code>.
If <code>M</code> &lt; <code>N</code>, truncates the mask to the first <code>M</code> elements.</p>

<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>]);
<span class="macro">assert_eq!</span>(x.resize::&lt;<span class="number">8</span>&gt;(<span class="bool-val">true</span>).to_array(), [<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>]);
<span class="macro">assert_eq!</span>(x.resize::&lt;<span class="number">2</span>&gt;(<span class="bool-val">true</span>).to_array(), [<span class="bool-val">false</span>, <span class="bool-val">true</span>]);</code></pre></div>
</div></details><details class="toggle method-toggle" open><summary><section id="method.extract" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#557-563">source</a><h4 class="code-header">pub fn <a href="#method.extract" class="fn">extract</a>&lt;const START: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>, const LEN: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, LEN&gt;<div class="where">where
</div></details><details class="toggle method-toggle" open><summary><section id="method.extract" class="method"><a class="src rightside" href="../../src/core_simd/swizzle.rs.html#556-562">source</a><h4 class="code-header">pub fn <a href="#method.extract" class="fn">extract</a>&lt;const START: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>, const LEN: <a class="primitive" href="https://doc.rust-lang.org/nightly/core/primitive.usize.html">usize</a>&gt;(self) -&gt; <a class="struct" href="struct.Mask.html" title="struct core_simd::simd::Mask">Mask</a>&lt;T, LEN&gt;<div class="where">where
<a class="struct" href="struct.LaneCount.html" title="struct core_simd::simd::LaneCount">LaneCount</a>&lt;LEN&gt;: <a class="trait" href="trait.SupportedLaneCount.html" title="trait core_simd::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h4></section><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code>)</span></div></span></summary><div class="docblock"><p>Extract a vector from another vector.</p>

<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>x = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>]);
Expand Down
Loading

0 comments on commit 6486b56

Please sign in to comment.