mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-10-28 15:51:25 +00:00
first commit
This commit is contained in:
commit
55885a0e8f
239 files changed
+103690
No files matched your search
@@ -0,0 +1,269 @@
|
||||
https://doc.rust-lang.org/stable/std/simd/struct.Mask.html#method.test
|
||||
|
||||
<main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div id="sidebar-button"><a href="../../std/all.html" title="show sidebar"></a></div><div class="rustdoc-breadcrumbs"><a href="../index.html">std</a>::<wbr><a href="index.html">simd</a></div><h1>Struct <span class="struct">Mask</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="sub-heading"><a class="src" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#112">Source</a> </span><rustdoc-toolbar>
|
||||
<div id="search-button" tabindex="-1">
|
||||
<a href="https://doc.rust-lang.org/stable/std/simd/struct.Mask.html?search="><span class="label">Search</span></a>
|
||||
</div>
|
||||
<div class="settings-menu" tabindex="-1">
|
||||
<a href="../../settings.html"><span class="label">Settings</span></a>
|
||||
</div>
|
||||
<div class="help-menu" tabindex="-1">
|
||||
<a href="../../help.html"><span class="label">Help</span></a>
|
||||
</div>
|
||||
<button id="toggle-all-docs" title="Collapse sections (shift-click to also collapse impl blocks)"><span class="label">Summary</span></button></rustdoc-toolbar></div><pre class="rust item-decl"><code>pub struct Mask<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>>(<span class="comment">/* private fields */</span>)
|
||||
<span class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a></span>;</code></pre><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><details class="toggle top-doc" open=""><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A SIMD vector mask for <code>N</code> elements of width specified by <code>Element</code>.</p>
|
||||
<p>Masks represent boolean inclusion/exclusion on a per-element basis.</p>
|
||||
<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/portable-simd/crates/core_simd/src/swizzle.rs.html#517-520">Source</a><a href="#impl-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::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/portable-simd/crates/core_simd/src/swizzle.rs.html#525">Source</a><h4 class="code-header">pub fn <a href="#method.reverse" class="fn">reverse</a>(self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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/portable-simd/crates/core_simd/src/swizzle.rs.html#535">Source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_left" class="fn">rotate_elements_left</a><const OFFSET: <a class="primitive" href="../primitive.usize.html">usize</a>>(self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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/portable-simd/crates/core_simd/src/swizzle.rs.html#545">Source</a><h4 class="code-header">pub fn <a href="#method.rotate_elements_right" class="fn">rotate_elements_right</a><const OFFSET: <a class="primitive" href="../primitive.usize.html">usize</a>>(self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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.shift_elements_left" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#554">Source</a><h4 class="code-header">pub fn <a href="#method.shift_elements_left" class="fn">shift_elements_left</a><const OFFSET: <a class="primitive" href="../primitive.usize.html">usize</a>>(
|
||||
self,
|
||||
padding: <a class="primitive" href="../primitive.bool.html">bool</a>,
|
||||
) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Shifts the mask elements to the left by <code>OFFSET</code>, filling in with
|
||||
<code>padding</code> from the right.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.shift_elements_right" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#569">Source</a><h4 class="code-header">pub fn <a href="#method.shift_elements_right" class="fn">shift_elements_right</a><const OFFSET: <a class="primitive" href="../primitive.usize.html">usize</a>>(
|
||||
self,
|
||||
padding: <a class="primitive" href="../primitive.bool.html">bool</a>,
|
||||
) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Shifts the mask elements to the right by <code>OFFSET</code>, filling in with
|
||||
<code>padding</code> from the left.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.interleave" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#600">Source</a><h4 class="code-header">pub fn <a href="#method.interleave" class="fn">interleave</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> (<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>, <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>)</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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 std::simd::Mask::deinterleave"><code>Mask::deinterleave</code></a>.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>a = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);
|
||||
<span class="kw">let </span>b = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>]);
|
||||
<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><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++%23%5Bcfg(feature+=+%22as_crate%22)%5D+use+core_simd::simd;%0A++++%23%5Bcfg(not(feature+=+%22as_crate%22))%5D+use+core::simd;%0A++++use+simd::mask32x4;%0A++++let+a+=+mask32x4::from_array(%5Bfalse,+true,+false,+true%5D);%0A++++let+b+=+mask32x4::from_array(%5Bfalse,+false,+true,+true%5D);%0A++++let+(x,+y)+=+a.interleave(b);%0A++++assert_eq!(x.to_array(),+%5Bfalse,+false,+true,+false%5D);%0A++++assert_eq!(y.to_array(),+%5Bfalse,+true,+true,+true%5D);%0A%7D&version=nightly&edition=2024"></a></div></div></details><details class="toggle method-toggle" open=""><summary><section id="method.deinterleave" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#629">Source</a><h4 class="code-header">pub fn <a href="#method.deinterleave" class="fn">deinterleave</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> (<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>, <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>)</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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
|
||||
the second element.</p>
|
||||
<p>The reverse of this operation is <a href="struct.Mask.html#method.interleave" title="method std::simd::Mask::interleave"><code>Mask::interleave</code></a>.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>a = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);
|
||||
<span class="kw">let </span>b = mask32x4::from_array([<span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>]);
|
||||
<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><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++%23%5Bcfg(feature+=+%22as_crate%22)%5D+use+core_simd::simd;%0A++++%23%5Bcfg(not(feature+=+%22as_crate%22))%5D+use+core::simd;%0A++++use+simd::mask32x4;%0A++++let+a+=+mask32x4::from_array(%5Bfalse,+true,+false,+true%5D);%0A++++let+b+=+mask32x4::from_array(%5Bfalse,+false,+true,+true%5D);%0A++++let+(x,+y)+=+a.deinterleave(b);%0A++++assert_eq!(x.to_array(),+%5Bfalse,+false,+false,+true%5D);%0A++++assert_eq!(y.to_array(),+%5Btrue,+true,+false,+true%5D);%0A%7D&version=nightly&edition=2024"></a></div></div></details><details class="toggle method-toggle" open=""><summary><section id="method.resize" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#656-658">Source</a><h4 class="code-header">pub fn <a href="#method.resize" class="fn">resize</a><const M: <a class="primitive" href="../primitive.usize.html">usize</a>>(self, value: <a class="primitive" href="../primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, M><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><M>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Resize a mask.</p>
|
||||
<p>If <code>M</code> > <code>N</code>, extends the length of a mask, setting the new elements to <code>value</code>.
|
||||
If <code>M</code> < <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::<<span class="number">8</span>>(<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::<<span class="number">2</span>>(<span class="bool-val">true</span>).to_array(), [<span class="bool-val">false</span>, <span class="bool-val">true</span>]);</code></pre><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++%23%5Bcfg(feature+=+%22as_crate%22)%5D+use+core_simd::simd;%0A++++%23%5Bcfg(not(feature+=+%22as_crate%22))%5D+use+core::simd;%0A++++use+simd::mask32x4;%0A++++let+x+=+mask32x4::from_array(%5Bfalse,+true,+true,+false%5D);%0A++++assert_eq!(x.resize::%3C8%3E(true).to_array(),+%5Bfalse,+true,+true,+false,+true,+true,+true,+true%5D);%0A++++assert_eq!(x.resize::%3C2%3E(true).to_array(),+%5Bfalse,+true%5D);%0A%7D&version=nightly&edition=2024"></a></div></div></details><details class="toggle method-toggle" open=""><summary><section id="method.extract" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/swizzle.rs.html#682-684">Source</a><h4 class="code-header">pub fn <a href="#method.extract" class="fn">extract</a><const START: <a class="primitive" href="../primitive.usize.html">usize</a>, const LEN: <a class="primitive" href="../primitive.usize.html">usize</a>>(self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, LEN><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><LEN>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</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>]);
|
||||
<span class="macro">assert_eq!</span>(x.extract::<<span class="number">1</span>, <span class="number">2</span>>().to_array(), [<span class="bool-val">true</span>, <span class="bool-val">true</span>]);</code></pre><div class="button-holder"><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++%23%5Bcfg(feature+=+%22as_crate%22)%5D+use+core_simd::simd;%0A++++%23%5Bcfg(not(feature+=+%22as_crate%22))%5D+use+core::simd;%0A++++use+simd::mask32x4;%0A++++let+x+=+mask32x4::from_array(%5Bfalse,+true,+true,+false%5D);%0A++++assert_eq!(x.extract::%3C1,+2%3E().to_array(),+%5Btrue,+true%5D);%0A%7D&version=nightly&edition=2024"></a><button class="copy-button" title="Copy code to clipboard"></button></div></div></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Mask%3CT,+N%3E-1" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#135-138">Source</a><a href="#impl-Mask%3CT,+N%3E-1" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.splat" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#142">Source</a><h4 class="code-header">pub fn <a href="#method.splat" class="fn">splat</a>(value: <a class="primitive" href="../primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Constructs a mask by setting all elements to the given value.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.from_array" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#148">Source</a><h4 class="code-header">pub fn <a href="#method.from_array" class="fn">from_array</a>(array: [<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</a>]) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts an array of bools to a SIMD mask.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.to_array" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#165">Source</a><h4 class="code-header">pub fn <a href="#method.to_array" class="fn">to_array</a>(self) -> [<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts a SIMD mask to an array of bools.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.from_int_unchecked" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#190">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.from_int_unchecked" class="fn">from_int_unchecked</a>(value: <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts a vector of integers to a mask, where 0 represents <code>false</code> and -1
|
||||
represents <code>true</code>.</p>
|
||||
<h5 id="safety"><a class="doc-anchor" href="#safety">§</a>Safety</h5>
|
||||
<p>All elements must be either 0 or -1.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.from_int" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#206">Source</a><h4 class="code-header">pub fn <a href="#method.from_int" class="fn">from_int</a>(value: <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts a vector of integers to a mask, where 0 represents <code>false</code> and -1
|
||||
represents <code>true</code>.</p>
|
||||
<h5 id="panics"><a class="doc-anchor" href="#panics">§</a>Panics</h5>
|
||||
<p>Panics if any element is not 0 or -1.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.to_int" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#216">Source</a><h4 class="code-header">pub fn <a href="#method.to_int" class="fn">to_int</a>(self) -> <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts the mask to a vector of integers, where 0 represents <code>false</code> and -1
|
||||
represents <code>true</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.cast" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#223">Source</a><h4 class="code-header">pub fn <a href="#method.cast" class="fn">cast</a><U>(self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><U, N><div class="where">where
|
||||
U: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Converts the mask to a mask of any other element size.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.test_unchecked" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#233">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.test_unchecked" class="fn">test_unchecked</a>(&self, index: <a class="primitive" href="../primitive.usize.html">usize</a>) -> <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Tests the value of the specified element.</p>
|
||||
<h5 id="safety-1"><a class="doc-anchor" href="#safety-1">§</a>Safety</h5>
|
||||
<p><code>index</code> must be less than <code>self.len()</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.test" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#245">Source</a><h4 class="code-header">pub fn <a href="#method.test" class="fn">test</a>(&self, index: <a class="primitive" href="../primitive.usize.html">usize</a>) -> <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Tests the value of the specified element.</p>
|
||||
<h5 id="panics-1"><a class="doc-anchor" href="#panics-1">§</a>Panics</h5>
|
||||
<p>Panics if <code>index</code> is greater than or equal to the number of elements in the vector.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.set_unchecked" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#256">Source</a><h4 class="code-header">pub unsafe fn <a href="#method.set_unchecked" class="fn">set_unchecked</a>(&mut self, index: <a class="primitive" href="../primitive.usize.html">usize</a>, value: <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Sets the value of the specified element.</p>
|
||||
<h5 id="safety-2"><a class="doc-anchor" href="#safety-2">§</a>Safety</h5>
|
||||
<p><code>index</code> must be less than <code>self.len()</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.set" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#269">Source</a><h4 class="code-header">pub fn <a href="#method.set" class="fn">set</a>(&mut self, index: <a class="primitive" href="../primitive.usize.html">usize</a>, value: <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Sets the value of the specified element.</p>
|
||||
<h5 id="panics-2"><a class="doc-anchor" href="#panics-2">§</a>Panics</h5>
|
||||
<p>Panics if <code>index</code> is greater than or equal to the number of elements in the vector.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.any" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#280">Source</a><h4 class="code-header">pub fn <a href="#method.any" class="fn">any</a>(self) -> <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Returns true if any element is set, or false otherwise.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.all" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#287">Source</a><h4 class="code-header">pub fn <a href="#method.all" class="fn">all</a>(self) -> <a class="primitive" href="../primitive.bool.html">bool</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Returns true if all elements are set, or false otherwise.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.to_bitmask" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#297">Source</a><h4 class="code-header">pub fn <a href="#method.to_bitmask" class="fn">to_bitmask</a>(self) -> <a class="primitive" href="../primitive.u64.html">u64</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Creates a bitmask from a mask.</p>
|
||||
<p>Each bit is set if the corresponding element in the mask is <code>true</code>.
|
||||
If the mask contains more than 64 elements, the bitmask is truncated to the first 64.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.from_bitmask" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#307">Source</a><h4 class="code-header">pub fn <a href="#method.from_bitmask" class="fn">from_bitmask</a>(bitmask: <a class="primitive" href="../primitive.u64.html">u64</a>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Creates a mask from a bitmask.</p>
|
||||
<p>For each bit, if it is set, the corresponding element in the mask is set to <code>true</code>.
|
||||
If the mask contains more than 64 elements, the remainder are set to <code>false</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open=""><summary><section id="method.first_set" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#326">Source</a><h4 class="code-header">pub fn <a href="#method.first_set" class="fn">first_set</a>(self) -> <a class="enum" href="../option/enum.Option.html" title="enum std::option::Option">Option</a><<a class="primitive" href="../primitive.usize.html">usize</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Finds the index of the first set element.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(mask32x8::splat(<span class="bool-val">false</span>).first_set(), <span class="prelude-val">None</span>);
|
||||
<span class="macro">assert_eq!</span>(mask32x8::splat(<span class="bool-val">true</span>).first_set(), <span class="prelude-val">Some</span>(<span class="number">0</span>));
|
||||
|
||||
<span class="kw">let </span>mask = mask32x8::from_array([<span class="bool-val">false</span>, <span class="bool-val">true</span>, <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="bool-val">false</span>, <span class="bool-val">true</span>]);
|
||||
<span class="macro">assert_eq!</span>(mask.first_set(), <span class="prelude-val">Some</span>(<span class="number">1</span>));</code></pre><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++%23%5Bcfg(feature+=+%22as_crate%22)%5D+use+core_simd::simd;%0A++++%23%5Bcfg(not(feature+=+%22as_crate%22))%5D+use+core::simd;%0A++++use+simd::mask32x8;%0A++++assert_eq!(mask32x8::splat(false).first_set(),+None);%0A++++assert_eq!(mask32x8::splat(true).first_set(),+Some(0));%0A++++%0A++++let+mask+=+mask32x8::from_array(%5Bfalse,+true,+false,+false,+true,+false,+false,+true%5D);%0A++++assert_eq!(mask.first_set(),+Some(1));%0A%7D&version=nightly&edition=2024"></a></div></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Mask%3CT,+N%3E-2" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/select.rs.html#3-6">Source</a><a href="#impl-Mask%3CT,+N%3E-2" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.select" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/select.rs.html#25-27">Source</a><h4 class="code-header">pub fn <a href="#method.select" class="fn">select</a><U>(
|
||||
self,
|
||||
true_values: <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><U, N>,
|
||||
false_values: <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><U, N>,
|
||||
) -> <a class="struct" href="struct.Simd.html" title="struct std::simd::Simd">Simd</a><U, N><div class="where">where
|
||||
U: <a class="trait" href="trait.SimdElement.html" title="trait std::simd::SimdElement">SimdElement</a><Mask = T>,</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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Choose elements from two vectors.</p>
|
||||
<p>For each element in the mask, choose the corresponding element from <code>true_values</code> if
|
||||
that element mask is true, and <code>false_values</code> if that element mask is false.</p>
|
||||
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span>a = Simd::from_array([<span class="number">0</span>, <span class="number">1</span>, <span class="number">2</span>, <span class="number">3</span>]);
|
||||
<span class="kw">let </span>b = Simd::from_array([<span class="number">4</span>, <span class="number">5</span>, <span class="number">6</span>, <span class="number">7</span>]);
|
||||
<span class="kw">let </span>mask = Mask::from_array([<span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);
|
||||
<span class="kw">let </span>c = mask.select(a, b);
|
||||
<span class="macro">assert_eq!</span>(c.to_array(), [<span class="number">0</span>, <span class="number">5</span>, <span class="number">6</span>, <span class="number">3</span>]);</code></pre><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++use+core::simd::%7BSimd,+Mask%7D;%0A++++let+a+=+Simd::from_array(%5B0,+1,+2,+3%5D);%0A++++let+b+=+Simd::from_array(%5B4,+5,+6,+7%5D);%0A++++let+mask+=+Mask::from_array(%5Btrue,+false,+false,+true%5D);%0A++++let+c+=+mask.select(a,+b);%0A++++assert_eq!(c.to_array(),+%5B0,+5,+6,+3%5D);%0A%7D&version=nightly&edition=2024"></a></div></div></details><details class="toggle method-toggle" open=""><summary><section id="method.select_mask" class="method"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/select.rs.html#51">Source</a><h4 class="code-header">pub fn <a href="#method.select_mask" class="fn">select_mask</a>(
|
||||
self,
|
||||
true_values: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>,
|
||||
false_values: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>,
|
||||
) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></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> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span></summary><div class="docblock"><p>Choose elements from two masks.</p>
|
||||
<p>For each element in the mask, choose the corresponding element from <code>true_values</code> if
|
||||
that element mask is true, and <code>false_values</code> if that element mask is false.</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">let </span>a = Mask::<i32, <span class="number">4</span>>::from_array([<span class="bool-val">true</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">false</span>]);
|
||||
<span class="kw">let </span>b = Mask::<i32, <span class="number">4</span>>::from_array([<span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">true</span>]);
|
||||
<span class="kw">let </span>mask = Mask::<i32, <span class="number">4</span>>::from_array([<span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>]);
|
||||
<span class="kw">let </span>c = mask.select_mask(a, b);
|
||||
<span class="macro">assert_eq!</span>(c.to_array(), [<span class="bool-val">true</span>, <span class="bool-val">false</span>, <span class="bool-val">true</span>, <span class="bool-val">false</span>]);</code></pre><a class="test-arrow" target="_blank" title="Run code" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(portable_simd)%5D%0A%0Afn+main()+%7B%0A++++use+core::simd::Mask;%0A++++let+a+=+Mask::%3Ci32,+4%3E::from_array(%5Btrue,+true,+false,+false%5D);%0A++++let+b+=+Mask::%3Ci32,+4%3E::from_array(%5Bfalse,+false,+true,+true%5D);%0A++++let+mask+=+Mask::%3Ci32,+4%3E::from_array(%5Btrue,+false,+false,+true%5D);%0A++++let+c+=+mask.select_mask(a,+b);%0A++++assert_eq!(c.to_array(),+%5Btrue,+false,+true,+false%5D);%0A%7D&version=nightly&edition=2024"></a></div></div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitAnd%3CMask%3CT,+N%3E%3E-for-bool" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#468-471">Source</a><a href="#impl-BitAnd%3CMask%3CT,+N%3E%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitAnd.html" title="trait std::ops::BitAnd">BitAnd</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>> for <a class="primitive" href="../primitive.bool.html">bool</a><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-9" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#473">Source</a><a href="#associatedtype.Output-9" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitAnd.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>&</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitand-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#475">Source</a><a href="#method.bitand-2" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitAnd.html#tymethod.bitand" class="fn">bitand</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>&</code> operation. <a href="../ops/trait.BitAnd.html#tymethod.bitand">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitAnd%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#456-459">Source</a><a href="#impl-BitAnd%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitAnd.html" title="trait std::ops::BitAnd">BitAnd</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-8" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#461">Source</a><a href="#associatedtype.Output-8" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitAnd.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>&</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitand-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#463">Source</a><a href="#method.bitand-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitAnd.html#tymethod.bitand" class="fn">bitand</a>(self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>&</code> operation. <a href="../ops/trait.BitAnd.html#tymethod.bitand">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitAnd-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#444-447">Source</a><a href="#impl-BitAnd-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitAnd.html" title="trait std::ops::BitAnd">BitAnd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-7" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#449">Source</a><a href="#associatedtype.Output-7" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitAnd.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>&</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitand" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#451">Source</a><a href="#method.bitand" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitAnd.html#tymethod.bitand" class="fn">bitand</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>&</code> operation. <a href="../ops/trait.BitAnd.html#tymethod.bitand">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitAndAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#575-578">Source</a><a href="#impl-BitAndAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitAndAssign.html" title="trait std::ops::BitAndAssign">BitAndAssign</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitand_assign-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#581">Source</a><a href="#method.bitand_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitAndAssign.html#tymethod.bitand_assign" class="fn">bitand_assign</a>(&mut self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock">Performs the <code>&=</code> operation. <a href="../ops/trait.BitAndAssign.html#tymethod.bitand_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitAndAssign-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#564-567">Source</a><a href="#impl-BitAndAssign-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitAndAssign.html" title="trait std::ops::BitAndAssign">BitAndAssign</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitand_assign" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#570">Source</a><a href="#method.bitand_assign" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitAndAssign.html#tymethod.bitand_assign" class="fn">bitand_assign</a>(&mut self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>)</h4></section></summary><div class="docblock">Performs the <code>&=</code> operation. <a href="../ops/trait.BitAndAssign.html#tymethod.bitand_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitOr%3CMask%3CT,+N%3E%3E-for-bool" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#504-507">Source</a><a href="#impl-BitOr%3CMask%3CT,+N%3E%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitOr.html" title="trait std::ops::BitOr">BitOr</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>> for <a class="primitive" href="../primitive.bool.html">bool</a><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#509">Source</a><a href="#associatedtype.Output-2" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitOr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>|</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitor-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#511">Source</a><a href="#method.bitor-2" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitOr.html#tymethod.bitor" class="fn">bitor</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>|</code> operation. <a href="../ops/trait.BitOr.html#tymethod.bitor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitOr%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#492-495">Source</a><a href="#impl-BitOr%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitOr.html" title="trait std::ops::BitOr">BitOr</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#497">Source</a><a href="#associatedtype.Output-1" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitOr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>|</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitor-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#499">Source</a><a href="#method.bitor-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitOr.html#tymethod.bitor" class="fn">bitor</a>(self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>|</code> operation. <a href="../ops/trait.BitOr.html#tymethod.bitor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitOr-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#480-483">Source</a><a href="#impl-BitOr-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitOr.html" title="trait std::ops::BitOr">BitOr</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#485">Source</a><a href="#associatedtype.Output" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitOr.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>|</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitor" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#487">Source</a><a href="#method.bitor" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitOr.html#tymethod.bitor" class="fn">bitor</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Performs the <code>|</code> operation. <a href="../ops/trait.BitOr.html#tymethod.bitor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitOrAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#597-600">Source</a><a href="#impl-BitOrAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitOrAssign.html" title="trait std::ops::BitOrAssign">BitOrAssign</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitor_assign-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#603">Source</a><a href="#method.bitor_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitOrAssign.html#tymethod.bitor_assign" class="fn">bitor_assign</a>(&mut self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock">Performs the <code>|=</code> operation. <a href="../ops/trait.BitOrAssign.html#tymethod.bitor_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitOrAssign-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#586-589">Source</a><a href="#impl-BitOrAssign-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitOrAssign.html" title="trait std::ops::BitOrAssign">BitOrAssign</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitor_assign" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#592">Source</a><a href="#method.bitor_assign" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitOrAssign.html#tymethod.bitor_assign" class="fn">bitor_assign</a>(&mut self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>)</h4></section></summary><div class="docblock">Performs the <code>|=</code> operation. <a href="../ops/trait.BitOrAssign.html#tymethod.bitor_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitXor%3CMask%3CT,+N%3E%3E-for-bool" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#540-543">Source</a><a href="#impl-BitXor%3CMask%3CT,+N%3E%3E-for-bool" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>> for <a class="primitive" href="../primitive.bool.html">bool</a><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-6" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#545">Source</a><a href="#associatedtype.Output-6" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitXor.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>^</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitxor-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#547">Source</a><a href="#method.bitxor-2" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitXor.html#tymethod.bitxor" class="fn">bitxor</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <<a class="primitive" href="../primitive.bool.html">bool</a> as <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>>>::<a class="associatedtype" href="../ops/trait.BitXor.html#associatedtype.Output" title="type std::ops::BitXor::Output">Output</a></h4></section></summary><div class="docblock">Performs the <code>^</code> operation. <a href="../ops/trait.BitXor.html#tymethod.bitxor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitXor%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#528-531">Source</a><a href="#impl-BitXor%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-5" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#533">Source</a><a href="#associatedtype.Output-5" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitXor.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>^</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitxor-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#535">Source</a><a href="#method.bitxor-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitXor.html#tymethod.bitxor" class="fn">bitxor</a>(self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N> as <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a><<a class="primitive" href="../primitive.bool.html">bool</a>>>::<a class="associatedtype" href="../ops/trait.BitXor.html#associatedtype.Output" title="type std::ops::BitXor::Output">Output</a></h4></section></summary><div class="docblock">Performs the <code>^</code> operation. <a href="../ops/trait.BitXor.html#tymethod.bitxor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitXor-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#516-519">Source</a><a href="#impl-BitXor-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#521">Source</a><a href="#associatedtype.Output-4" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.BitXor.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>^</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.bitxor" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#523">Source</a><a href="#method.bitxor" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitXor.html#tymethod.bitxor" class="fn">bitxor</a>(self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N> as <a class="trait" href="../ops/trait.BitXor.html" title="trait std::ops::BitXor">BitXor</a>>::<a class="associatedtype" href="../ops/trait.BitXor.html#associatedtype.Output" title="type std::ops::BitXor::Output">Output</a></h4></section></summary><div class="docblock">Performs the <code>^</code> operation. <a href="../ops/trait.BitXor.html#tymethod.bitxor">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitXorAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#619-622">Source</a><a href="#impl-BitXorAssign%3Cbool%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitXorAssign.html" title="trait std::ops::BitXorAssign">BitXorAssign</a><<a class="primitive" href="../primitive.bool.html">bool</a>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitxor_assign-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#625">Source</a><a href="#method.bitxor_assign-1" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitXorAssign.html#tymethod.bitxor_assign" class="fn">bitxor_assign</a>(&mut self, rhs: <a class="primitive" href="../primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock">Performs the <code>^=</code> operation. <a href="../ops/trait.BitXorAssign.html#tymethod.bitxor_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-BitXorAssign-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#608-611">Source</a><a href="#impl-BitXorAssign-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.BitXorAssign.html" title="trait std::ops::BitXorAssign">BitXorAssign</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.bitxor_assign" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#614">Source</a><a href="#method.bitxor_assign" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.BitXorAssign.html#tymethod.bitxor_assign" class="fn">bitxor_assign</a>(&mut self, rhs: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>)</h4></section></summary><div class="docblock">Performs the <code>^=</code> operation. <a href="../ops/trait.BitXorAssign.html#tymethod.bitxor_assign">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Clone-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#124-127">Source</a><a href="#impl-Clone-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../clone/trait.Clone.html" title="trait std::clone::Clone">Clone</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.clone" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#130">Source</a><a href="#method.clone" class="anchor">§</a><h4 class="code-header">fn <a href="../clone/trait.Clone.html#tymethod.clone" class="fn">clone</a>(&self) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Returns a duplicate of the value. <a href="../clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.clone_from" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/clone.rs.html#245-247">Source</a></span><a href="#method.clone_from" class="anchor">§</a><h4 class="code-header">fn <a href="../clone/trait.Clone.html#method.clone_from" class="fn">clone_from</a>(&mut self, source: &Self)</h4></section></summary><div class="docblock">Performs copy-assignment from <code>source</code>. <a href="../clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Debug-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#431-434">Source</a><a href="#impl-Debug-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../fmt/trait.Debug.html" title="trait std::fmt::Debug">Debug</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a> + <a class="trait" href="../fmt/trait.Debug.html" title="trait std::fmt::Debug">Debug</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.fmt" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#437">Source</a><a href="#method.fmt" class="anchor">§</a><h4 class="code-header">fn <a href="../fmt/trait.Debug.html#tymethod.fmt" class="fn">fmt</a>(&self, f: &mut <a class="struct" href="../fmt/struct.Formatter.html" title="struct std::fmt::Formatter">Formatter</a><'_>) -> <a class="enum" href="../result/enum.Result.html" title="enum std::result::Result">Result</a><<a class="primitive" href="../primitive.unit.html">()</a>, <a class="struct" href="../fmt/struct.Error.html" title="struct std::fmt::Error">Error</a>></h4></section></summary><div class="docblock">Formats the value using the given formatter. <a href="../fmt/trait.Debug.html#tymethod.fmt">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Default-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#398-401">Source</a><a href="#impl-Default-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../default/trait.Default.html" title="trait std::default::Default">Default</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.default" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#404">Source</a><a href="#method.default" class="anchor">§</a><h4 class="code-header">fn <a href="../default/trait.Default.html#tymethod.default" class="fn">default</a>() -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Returns the “default value” for a type. <a href="../default/trait.Default.html#tymethod.default">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3C%5Bbool;+N%5D%3E-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#376-379">Source</a><a href="#impl-From%3C%5Bbool;+N%5D%3E-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><[<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</a>]> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#382">Source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(array: [<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</a>]) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3CT,+N%3E%3E-for-%5Bbool;+N%5D" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#387-390">Source</a><a href="#impl-From%3CMask%3CT,+N%3E%3E-for-%5Bbool;+N%5D" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>> for [<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</a>]<div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#393">Source</a><a href="#method.from-1" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(vector: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> [<a class="primitive" href="../primitive.bool.html">bool</a>; <a class="primitive" href="../primitive.array.html">N</a>]</h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-6" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#method.from-6" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-7" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#method.from-7" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-9" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#method.from-9" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#impl-From%3CMask%3Ci16,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-8" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#646">Source</a><a href="#method.from-8" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-13" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#method.from-13" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-10" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#method.from-10" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-12" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#method.from-12" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#impl-From%3CMask%3Ci32,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-11" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#647">Source</a><a href="#method.from-11" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-16" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#method.from-16" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-17" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#method.from-17" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-15" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#method.from-15" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#impl-From%3CMask%3Ci64,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-14" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#648">Source</a><a href="#method.from-14" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#method.from-2" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#method.from-3" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#method.from-4" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#impl-From%3CMask%3Ci8,+N%3E%3E-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-5" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#645">Source</a><a href="#method.from-5" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-19" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#method.from-19" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-20" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#method.from-20" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-21" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#method.from-21" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#impl-From%3CMask%3Cisize,+N%3E%3E-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-18" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#649">Source</a><a href="#method.from-18" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(value: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><div class="docblock">Converts to this type from the input type.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-Not-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#552-555">Source</a><a href="#impl-Not-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../ops/trait.Not.html" title="trait std::ops::Not">Not</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Output-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#557">Source</a><a href="#associatedtype.Output-3" class="anchor">§</a><h4 class="code-header">type <a href="../ops/trait.Not.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N></h4></section></summary><div class="docblock">The resulting type after applying the <code>!</code> operator.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.not" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#559">Source</a><a href="#method.not" class="anchor">§</a><h4 class="code-header">fn <a href="../ops/trait.Not.html#tymethod.not" class="fn">not</a>(self) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N> as <a class="trait" href="../ops/trait.Not.html" title="trait std::ops::Not">Not</a>>::<a class="associatedtype" href="../ops/trait.Not.html#associatedtype.Output" title="type std::ops::Not::Output">Output</a></h4></section></summary><div class="docblock">Performs the unary <code>!</code> operation. <a href="../ops/trait.Not.html#tymethod.not">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-PartialEq-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#409-412">Source</a><a href="#impl-PartialEq-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../cmp/trait.PartialEq.html" title="trait std::cmp::PartialEq">PartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a> + <a class="trait" href="../cmp/trait.PartialEq.html" title="trait std::cmp::PartialEq">PartialEq</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.eq" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#415">Source</a><a href="#method.eq" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialEq.html#tymethod.eq" class="fn">eq</a>(&self, other: &<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.ne" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/cmp.rs.html#264">Source</a></span><a href="#method.ne" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialEq.html#method.ne" class="fn">ne</a>(&self, other: <a class="primitive" href="../primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests for <code>!=</code>. The default implementation is almost always sufficient,
|
||||
and should not be overridden without very good reason.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-PartialOrd-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#420-423">Source</a><a href="#impl-PartialOrd-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../cmp/trait.PartialOrd.html" title="trait std::cmp::PartialOrd">PartialOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a> + <a class="trait" href="../cmp/trait.PartialOrd.html" title="trait std::cmp::PartialOrd">PartialOrd</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.partial_cmp" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#426">Source</a><a href="#method.partial_cmp" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialOrd.html#tymethod.partial_cmp" class="fn">partial_cmp</a>(&self, other: &<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N>) -> <a class="enum" href="../option/enum.Option.html" title="enum std::option::Option">Option</a><<a class="enum" href="../cmp/enum.Ordering.html" title="enum std::cmp::Ordering">Ordering</a>></h4></section></summary><div class="docblock">This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="../cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.lt" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/cmp.rs.html#1398">Source</a></span><a href="#method.lt" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialOrd.html#method.lt" class="fn">lt</a>(&self, other: <a class="primitive" href="../primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests less than (for <code>self</code> and <code>other</code>) and is used by the <code><</code> operator. <a href="../cmp/trait.PartialOrd.html#method.lt">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.le" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/cmp.rs.html#1416">Source</a></span><a href="#method.le" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialOrd.html#method.le" class="fn">le</a>(&self, other: <a class="primitive" href="../primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the
|
||||
<code><=</code> operator. <a href="../cmp/trait.PartialOrd.html#method.le">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.gt" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/cmp.rs.html#1434">Source</a></span><a href="#method.gt" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialOrd.html#method.gt" class="fn">gt</a>(&self, other: <a class="primitive" href="../primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>></code>
|
||||
operator. <a href="../cmp/trait.PartialOrd.html#method.gt">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.ge" class="method trait-impl"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../../src/core/cmp.rs.html#1452">Source</a></span><a href="#method.ge" class="anchor">§</a><h4 class="code-header">fn <a href="../cmp/trait.PartialOrd.html#method.ge" class="fn">ge</a>(&self, other: <a class="primitive" href="../primitive.reference.html">&Rhs</a>) -> <a class="primitive" href="../primitive.bool.html">bool</a></h4></section></summary><div class="docblock">Tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by
|
||||
the <code>>=</code> operator. <a href="../cmp/trait.PartialOrd.html#method.ge">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdOrd-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdOrd-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdOrd.html" title="trait std::simd::cmp::SimdOrd">SimdOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_max-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_max-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_max" class="fn">simd_max</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise maximum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_min-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_min-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_min" class="fn">simd_min</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise minimum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_clamp-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_clamp-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp" class="fn">simd_clamp</a>(self, min: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>, max: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Restrict each element to a certain interval. <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdOrd-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdOrd-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdOrd.html" title="trait std::simd::cmp::SimdOrd">SimdOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_max-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_max-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_max" class="fn">simd_max</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise maximum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_min-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_min-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_min" class="fn">simd_min</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise minimum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_clamp-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_clamp-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp" class="fn">simd_clamp</a>(self, min: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>, max: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Restrict each element to a certain interval. <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdOrd-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdOrd-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdOrd.html" title="trait std::simd::cmp::SimdOrd">SimdOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_max-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_max-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_max" class="fn">simd_max</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise maximum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_min-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_min-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_min" class="fn">simd_min</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise minimum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_clamp-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_clamp-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp" class="fn">simd_clamp</a>(self, min: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>, max: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Restrict each element to a certain interval. <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdOrd-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdOrd-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdOrd.html" title="trait std::simd::cmp::SimdOrd">SimdOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_max" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_max" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_max" class="fn">simd_max</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise maximum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_min" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_min" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_min" class="fn">simd_min</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise minimum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_clamp" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_clamp" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp" class="fn">simd_clamp</a>(self, min: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>, max: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Restrict each element to a certain interval. <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdOrd-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdOrd-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdOrd.html" title="trait std::simd::cmp::SimdOrd">SimdOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_max-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_max-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_max" class="fn">simd_max</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise maximum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_min-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_min-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_min" class="fn">simd_min</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Returns the element-wise minimum with <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_clamp-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_clamp-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp" class="fn">simd_clamp</a>(self, min: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>, max: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>) -> <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Restrict each element to a certain interval. <a href="cmp/trait.SimdOrd.html#tymethod.simd_clamp">Read more</a></div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialEq-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#impl-SimdPartialEq-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Mask-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#associatedtype.Mask-1" class="anchor">§</a><h4 class="code-header">type <a href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" class="associatedtype">Mask</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">The mask type returned by each comparison.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_eq-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_eq-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_eq" class="fn">simd_eq</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ne-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_ne-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_ne" class="fn">simd_ne</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is not equal to the corresponding element in <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialEq-for-Mask%3Ci32,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#impl-SimdPartialEq-for-Mask%3Ci32,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Mask-2" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#associatedtype.Mask-2" class="anchor">§</a><h4 class="code-header">type <a href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" class="associatedtype">Mask</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">The mask type returned by each comparison.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_eq-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_eq-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_eq" class="fn">simd_eq</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ne-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_ne-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_ne" class="fn">simd_ne</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is not equal to the corresponding element in <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialEq-for-Mask%3Ci64,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#impl-SimdPartialEq-for-Mask%3Ci64,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Mask-3" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#associatedtype.Mask-3" class="anchor">§</a><h4 class="code-header">type <a href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" class="associatedtype">Mask</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">The mask type returned by each comparison.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_eq-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_eq-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_eq" class="fn">simd_eq</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ne-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_ne-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_ne" class="fn">simd_ne</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is not equal to the corresponding element in <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialEq-for-Mask%3Ci8,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#impl-SimdPartialEq-for-Mask%3Ci8,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Mask" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#associatedtype.Mask" class="anchor">§</a><h4 class="code-header">type <a href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" class="associatedtype">Mask</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">The mask type returned by each comparison.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_eq" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_eq" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_eq" class="fn">simd_eq</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ne" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_ne" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_ne" class="fn">simd_ne</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is not equal to the corresponding element in <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialEq-for-Mask%3Cisize,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#impl-SimdPartialEq-for-Mask%3Cisize,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Mask-4" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#associatedtype.Mask-4" class="anchor">§</a><h4 class="code-header">type <a href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" class="associatedtype">Mask</a> = <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">The mask type returned by each comparison.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_eq-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_eq-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_eq" class="fn">simd_eq</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ne-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/eq.rs.html#76">Source</a><a href="#method.simd_ne-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialEq.html#tymethod.simd_ne" class="fn">simd_ne</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is not equal to the corresponding element in <code>other</code>.</div></details></div></details><details class="toggle implementors-toggle" open=""><summary><section id="impl-SimdPartialOrd-for-Mask%3Ci16,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#impl-SimdPartialOrd-for-Mask%3Ci16,+N%3E" class="anchor">§</a><h3 class="code-header">impl<const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="cmp/trait.SimdPartialOrd.html" title="trait std::simd::cmp::SimdPartialOrd">SimdPartialOrd</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N><div class="where">where
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_lt-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_lt-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_lt" class="fn">simd_lt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_le-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_le-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_le" class="fn">simd_le</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than or equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_gt-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_gt-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_gt" class="fn">simd_gt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ge-1" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_ge-1" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_ge" class="fn">simd_ge</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i16.html">i16</a>, N>) -> <<a class="struct" href="struct.Mask.htmlLine truncated
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_lt-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_lt-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_lt" class="fn">simd_lt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_le-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_le-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_le" class="fn">simd_le</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than or equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_gt-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_gt-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_gt" class="fn">simd_gt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ge-2" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_ge-2" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_ge" class="fn">simd_ge</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i32.html">i32</a>, N>) -> <<a class="struct" href="struct.Mask.htmlLine truncated
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_lt-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_lt-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_lt" class="fn">simd_lt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_le-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_le-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_le" class="fn">simd_le</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than or equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_gt-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_gt-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_gt" class="fn">simd_gt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ge-3" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_ge-3" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_ge" class="fn">simd_ge</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i64.html">i64</a>, N>) -> <<a class="struct" href="struct.Mask.htmlLine truncated
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_lt" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_lt" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_lt" class="fn">simd_lt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_le" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_le" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_le" class="fn">simd_le</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than or equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_gt" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_gt" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_gt" class="fn">simd_gt</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ge" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_ge" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_ge" class="fn">simd_ge</a>(self, other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.i8.html">i8</a>, N>) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::MasLine truncated
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.simd_lt-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_lt-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_lt" class="fn">simd_lt</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_le-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_le-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_le" class="fn">simd_le</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is less than or equal to the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_gt-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_gt-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_gt" class="fn">simd_gt</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than the corresponding element in <code>other</code>.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.simd_ge-4" class="method trait-impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/simd/cmp/ord.rs.html#219">Source</a><a href="#method.simd_ge-4" class="anchor">§</a><h4 class="code-header">fn <a href="cmp/trait.SimdPartialOrd.html#tymethod.simd_ge" class="fn">simd_ge</a>(
|
||||
self,
|
||||
other: <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N>,
|
||||
) -> <<a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><<a class="primitive" href="../primitive.isize.html">isize</a>, N> as <a class="trait" href="cmp/trait.SimdPartialEq.html" title="trait std::simd::cmp::SimdPartialEq">SimdPartialEq</a>>::<a class="associatedtype" href="cmp/trait.SimdPartialEq.html#associatedtype.Mask" title="type std::simd::cmp::SimdPartialEq::Mask">Mask</a></h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>portable_simd</code> <a href="https://github.com/rust-lang/rust/issues/86656">#86656</a>)</span></div></span><div class="docblock">Test if each element is greater than or equal to the corresponding element in <code>other</code>.</div></details></div></details><section id="impl-Copy-for-Mask%3CT,+N%3E" class="impl"><a class="src rightside" href="../../src/core/portable-simd/crates/core_simd/src/masks.rs.html#117-120">Source</a><a href="#impl-Copy-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../marker/trait.Copy.html" title="trait std::marker::Copy">Copy</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="trait.MaskElement.html" title="trait std::simd::MaskElement">MaskElement</a>,
|
||||
<a class="struct" href="struct.LaneCount.html" title="struct std::simd::LaneCount">LaneCount</a><N>: <a class="trait" href="trait.SupportedLaneCount.html" title="trait std::simd::SupportedLaneCount">SupportedLaneCount</a>,</div></h3></section></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-Freeze-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../marker/trait.Freeze.html" title="trait std::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../marker/trait.Freeze.html" title="trait std::marker::Freeze">Freeze</a>,</div></h3></section><section id="impl-RefUnwindSafe-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../panic/trait.RefUnwindSafe.html" title="trait std::panic::RefUnwindSafe">RefUnwindSafe</a>,</div></h3></section><section id="impl-Send-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-Send-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../marker/trait.Send.html" title="trait std::marker::Send">Send</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../marker/trait.Send.html" title="trait std::marker::Send">Send</a>,</div></h3></section><section id="impl-Sync-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-Sync-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../marker/trait.Sync.html" title="trait std::marker::Sync">Sync</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../marker/trait.Sync.html" title="trait std::marker::Sync">Sync</a>,</div></h3></section><section id="impl-Unpin-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-Unpin-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../marker/trait.Unpin.html" title="trait std::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../marker/trait.Unpin.html" title="trait std::marker::Unpin">Unpin</a>,</div></h3></section><section id="impl-UnwindSafe-for-Mask%3CT,+N%3E" class="impl"><a href="#impl-UnwindSafe-for-Mask%3CT,+N%3E" class="anchor">§</a><h3 class="code-header">impl<T, const N: <a class="primitive" href="../primitive.usize.html">usize</a>> <a class="trait" href="../panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Mask.html" title="struct std::simd::Mask">Mask</a><T, N><div class="where">where
|
||||
T: <a class="trait" href="../panic/trait.UnwindSafe.html" title="trait std::panic::UnwindSafe">UnwindSafe</a>,</div></h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="../../src/core/any.rs.html#138">Source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../any/trait.Any.html" title="trait std::any::Any">Any</a> for T<div class="where">where
|
||||
T: 'static + ?<a class="trait" href="../marker/trait.Sized.html" title="trait std::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="../../src/core/any.rs.html#139">Source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="../any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="../any/struct.TypeId.html" title="struct std::any::TypeId">TypeId</a></h4></section></summary><div class="docblock">Gets the <code>TypeId</code> of <code>self</code>. <a href="../any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/borrow.rs.html#212">Source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../borrow/trait.Borrow.html" title="trait std::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
||||
T: ?<a class="trait" href="../marker/trait.Sized.html" title="trait std::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="../../src/core/borrow.rs.html#214">Source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="../borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="../primitive.reference.html">&T</a></h4></section></summary><div class="docblock">Immutably borrows from an owned value. <a href="../borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/borrow.rs.html#221">Source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../borrow/trait.BorrowMut.html" title="trait std::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
||||
T: ?<a class="trait" href="../marker/trait.Sized.html" title="trait std::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="../../src/core/borrow.rs.html#222">Source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="../borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="../primitive.reference.html">&mut T</a></h4></section></summary><div class="docblock">Mutably borrows from an owned value. <a href="../borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-CloneToUninit-for-T" class="impl"><a class="src rightside" href="../../src/core/clone.rs.html#547">Source</a><a href="#impl-CloneToUninit-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../clone/trait.CloneToUninit.html" title="trait std::clone::CloneToUninit">CloneToUninit</a> for T<div class="where">where
|
||||
T: <a class="trait" href="../clone/trait.Clone.html" title="trait std::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.clone_to_uninit" class="method trait-impl"><a class="src rightside" href="../../src/core/clone.rs.html#549">Source</a><a href="#method.clone_to_uninit" class="anchor">§</a><h4 class="code-header">unsafe fn <a href="../clone/trait.CloneToUninit.html#tymethod.clone_to_uninit" class="fn">clone_to_uninit</a>(&self, dest: <a class="primitive" href="../primitive.pointer.html">*mut </a><a class="primitive" href="../primitive.u8.html">u8</a>)</h4></section></summary><span class="item-info"><div class="stab unstable"><span class="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>clone_to_uninit</code> <a href="https://github.com/rust-lang/rust/issues/126799">#126799</a>)</span></div></span><div class="docblock">Performs copy-assignment from <code>self</code> to <code>dest</code>. <a href="../clone/trait.CloneToUninit.html#tymethod.clone_to_uninit">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#785">Source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.from-22" class="method trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#788">Source</a><a href="#method.from-22" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
|
||||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#767-769">Source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="../convert/trait.Into.html" title="trait std::convert::Into">Into</a><U> for T<div class="where">where
|
||||
U: <a class="trait" href="../convert/trait.From.html" title="trait std::convert::From">From</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open=""><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#777">Source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
|
||||
<p>That is, this conversion is whatever the implementation of
|
||||
<code><a href="../convert/trait.From.html" title="trait std::convert::From">From</a><T> for U</code> chooses to do.</p>
|
||||
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-ToOwned-for-T" class="impl"><a class="src rightside" href="../../src/alloc/borrow.rs.html#85-87">Source</a><a href="#impl-ToOwned-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="../borrow/trait.ToOwned.html" title="trait std::borrow::ToOwned">ToOwned</a> for T<div class="where">where
|
||||
T: <a class="trait" href="../clone/trait.Clone.html" title="trait std::clone::Clone">Clone</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Owned" class="associatedtype trait-impl"><a class="src rightside" href="../../src/alloc/borrow.rs.html#89">Source</a><a href="#associatedtype.Owned" class="anchor">§</a><h4 class="code-header">type <a href="../borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class="docblock">The resulting type after obtaining ownership.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.to_owned" class="method trait-impl"><a class="src rightside" href="../../src/alloc/borrow.rs.html#90">Source</a><a href="#method.to_owned" class="anchor">§</a><h4 class="code-header">fn <a href="../borrow/trait.ToOwned.html#tymethod.to_owned" class="fn">to_owned</a>(&self) -> T</h4></section></summary><div class="docblock">Creates owned data from borrowed data, usually by cloning. <a href="../borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><details class="toggle method-toggle" open=""><summary><section id="method.clone_into" class="method trait-impl"><a class="src rightside" href="../../src/alloc/borrow.rs.html#94">Source</a><a href="#method.clone_into" class="anchor">§</a><h4 class="code-header">fn <a href="../borrow/trait.ToOwned.html#method.clone_into" class="fn">clone_into</a>(&self, target: <a class="primitive" href="../primitive.reference.html">&mut T</a>)</h4></section></summary><div class="docblock">Uses borrowed data to replace owned data, usually by cloning. <a href="../borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#827-829">Source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
||||
U: <a class="trait" href="../convert/trait.Into.html" title="trait std::convert::Into">Into</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#831">Source</a><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="../convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="../convert/enum.Infallible.html" title="enum std::convert::Infallible">Infallible</a></h4></section></summary><div class="docblock">The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#834">Source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="../result/enum.Result.html" title="enum std::result::Result">Result</a><T, <T as <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="../convert/trait.TryFrom.html#associatedtype.Error" title="type std::convert::TryFrom::Error">Error</a>></h4></section></summary><div class="docblock">Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#811-813">Source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="../convert/trait.TryInto.html" title="trait std::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
||||
U: <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><div class="impl-items"><details class="toggle" open=""><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#815">Source</a><a href="#associatedtype.Error" class="anchor">§</a><h4 class="code-header">type <a href="../convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="../convert/trait.TryFrom.html#associatedtype.Error" title="type std::convert::TryFrom::Error">Error</a></h4></section></summary><div class="docblock">The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open=""><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="../../src/core/convert/mod.rs.html#818">Source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="../convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="../result/enum.Result.html" title="enum std::result::Result">Result</a><U, <U as <a class="trait" href="../convert/trait.TryFrom.html" title="trait std::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="../convert/trait.TryFrom.html#associatedtype.Error" title="type std::convert::TryFrom::Error">Error</a>></h4></section></summary><div class="docblock">Performs the conversion.</div></details></div></details></div></section><section id="alternative-display" class="content hidden"></section><section id="not-displayed" class="hidden"><section id="search"><div class="main-heading search-results-main-heading"><nav class="sub">
|
||||
<form class="search-form loading">
|
||||
<span></span> <!-- This empty span is a hacky fix for Safari: see #93184 -->
|
||||
<input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search">
|
||||
</form>
|
||||
</nav><div class="search-switcher"></div></div><div class="search-out"></div></section></section></div></main>
|
||||
@@ -0,0 +1,177 @@
|
||||
https://doc.rust-lang.org/stable/std/index.html?search=test
|
||||
|
||||
<main><div class="width-limiter"><section id="main-content" class="content hidden"><div class="main-heading"><div id="sidebar-button"><a href="../std/all.html" title="show sidebar"></a></div><h1>Crate <span>std</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="sub-heading"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="src" href="../src/std/lib.rs.html#1-763">Source</a> </span></div><details class="toggle top-doc" open=""><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><h2 id="the-rust-standard-library"><a class="doc-anchor" href="#the-rust-standard-library">§</a>The Rust Standard Library</h2>
|
||||
<p>The Rust Standard Library is the foundation of portable Rust software, a
|
||||
set of minimal and battle-tested shared abstractions for the <a href="https://crates.io">broader Rust
|
||||
ecosystem</a>. It offers core types, like <a href="vec/struct.Vec.html" title="struct std::vec::Vec"><code>Vec<T></code></a> and
|
||||
<a href="option/enum.Option.html" title="enum std::option::Option"><code>Option<T></code></a>, library-defined <a href="#primitives">operations on language
|
||||
primitives</a>, <a href="#macros">standard macros</a>, <a href="io/index.html" title="mod std::io">I/O</a> and
|
||||
<a href="thread/index.html" title="mod std::thread">multithreading</a>, among <a href="#what-is-in-the-standard-library-documentation">many other things</a>.</p>
|
||||
<p><code>std</code> is available to all Rust crates by default. Therefore, the
|
||||
standard library can be accessed in <a href="../book/ch07-02-defining-modules-to-control-scope-and-privacy.html"><code>use</code></a> statements through the path
|
||||
<code>std</code>, as in <a href="env/index.html"><code>use std::env</code></a>.</p>
|
||||
<h2 id="how-to-read-this-documentation"><a class="doc-anchor" href="#how-to-read-this-documentation">§</a>How to read this documentation</h2>
|
||||
<p>If you already know the name of what you are looking for, the fastest way to
|
||||
find it is to use the <a href="#" onclick="window.searchState.focus();">search
|
||||
button</a> at the top of the page.</p>
|
||||
<p>Otherwise, you may want to jump to one of these useful sections:</p>
|
||||
<ul>
|
||||
<li><a href="#modules"><code>std::*</code> modules</a></li>
|
||||
<li><a href="#primitives">Primitive types</a></li>
|
||||
<li><a href="#macros">Standard macros</a></li>
|
||||
<li><a href="prelude/index.html" title="mod std::prelude">The Rust Prelude</a></li>
|
||||
</ul>
|
||||
<p>If this is your first time, the documentation for the standard library is
|
||||
written to be casually perused. Clicking on interesting things should
|
||||
generally lead you to interesting places. Still, there are important bits
|
||||
you don’t want to miss, so read on for a tour of the standard library and
|
||||
its documentation!</p>
|
||||
<p>Once you are familiar with the contents of the standard library you may
|
||||
begin to find the verbosity of the prose distracting. At this stage in your
|
||||
development you may want to press the
|
||||
“<svg style="width:0.75rem;height:0.75rem" viewBox="0 0 12 12" stroke="currentColor" fill="none"><path d="M2,2l4,4l4,-4M2,6l4,4l4,-4"></path></svg> Summary”
|
||||
button near the top of the page to collapse it into a more skimmable view.</p>
|
||||
<p>While you are looking at the top of the page, also notice the
|
||||
“Source” link. Rust’s API documentation comes with the source
|
||||
code and you are encouraged to read it. The standard library source is
|
||||
generally high quality and a peek behind the curtains is
|
||||
often enlightening.</p>
|
||||
<h2 id="what-is-in-the-standard-library-documentation"><a class="doc-anchor" href="#what-is-in-the-standard-library-documentation">§</a>What is in the standard library documentation?</h2>
|
||||
<p>First of all, The Rust Standard Library is divided into a number of focused
|
||||
modules, <a href="#modules">all listed further down this page</a>. These modules are
|
||||
the bedrock upon which all of Rust is forged, and they have mighty names
|
||||
like <a href="slice/index.html" title="mod std::slice"><code>std::slice</code></a> and <a href="cmp/index.html" title="mod std::cmp"><code>std::cmp</code></a>. Modules’ documentation typically
|
||||
includes an overview of the module along with examples, and are a smart
|
||||
place to start familiarizing yourself with the library.</p>
|
||||
<p>Second, implicit methods on <a href="../book/ch03-02-data-types.html">primitive types</a> are documented here. This can
|
||||
be a source of confusion for two reasons:</p>
|
||||
<ol>
|
||||
<li>While primitives are implemented by the compiler, the standard library
|
||||
implements methods directly on the primitive types (and it is the only
|
||||
library that does so), which are <a href="#primitives">documented in the section on
|
||||
primitives</a>.</li>
|
||||
<li>The standard library exports many modules <em>with the same name as
|
||||
primitive types</em>. These define additional items related to the primitive
|
||||
type, but not the all-important methods.</li>
|
||||
</ol>
|
||||
<p>So for example there is a <a href="primitive.char.html" title="primitive char">page for the primitive type
|
||||
<code>char</code></a> that lists all the methods that can be called on
|
||||
characters (very useful), and there is a <a href="char/index.html" title="mod std::char">page for the module
|
||||
<code>std::char</code></a> that documents iterator and error types created by these methods
|
||||
(rarely useful).</p>
|
||||
<p>Note the documentation for the primitives <a href="primitive.str.html" title="primitive str"><code>str</code></a> and <a href="primitive.slice.html" title="primitive slice"><code>[T]</code></a> (also
|
||||
called ‘slice’). Many method calls on <a href="string/struct.String.html" title="struct std::string::String"><code>String</code></a> and <a href="vec/struct.Vec.html" title="struct std::vec::Vec"><code>Vec<T></code></a> are actually
|
||||
calls to methods on <a href="primitive.str.html" title="primitive str"><code>str</code></a> and <a href="primitive.slice.html" title="primitive slice"><code>[T]</code></a> respectively, via <a href="../book/ch15-02-deref.html#implicit-deref-coercions-with-functions-and-methods">deref
|
||||
coercions</a>.</p>
|
||||
<p>Third, the standard library defines <a href="prelude/index.html" title="mod std::prelude">The Rust Prelude</a>, a small collection
|
||||
of items - mostly traits - that are imported into every module of every
|
||||
crate. The traits in the prelude are pervasive, making the prelude
|
||||
documentation a good entry point to learning about the library.</p>
|
||||
<p>And finally, the standard library exports a number of standard macros, and
|
||||
<a href="#macros">lists them on this page</a> (technically, not all of the standard
|
||||
macros are defined by the standard library - some are defined by the
|
||||
compiler - but they are documented here the same). Like the prelude, the
|
||||
standard macros are imported by default into all crates.</p>
|
||||
<h2 id="contributing-changes-to-the-documentation"><a class="doc-anchor" href="#contributing-changes-to-the-documentation">§</a>Contributing changes to the documentation</h2>
|
||||
<p>Check out the Rust contribution guidelines <a href="https://rustc-dev-guide.rust-lang.org/contributing.html#writing-documentation">here</a>.
|
||||
The source for this documentation can be found on
|
||||
<a href="https://github.com/rust-lang/rust">GitHub</a> in the ‘library/std/’ directory.
|
||||
To contribute changes, make sure you read the guidelines first, then submit
|
||||
pull-requests for your suggested changes.</p>
|
||||
<p>Contributions are appreciated! If you see a part of the docs that can be
|
||||
improved, submit a PR, or chat with us first on <a href="https://rust-lang.zulipchat.com/">Zulip</a>
|
||||
#docs.</p>
|
||||
<h2 id="a-tour-of-the-rust-standard-library"><a class="doc-anchor" href="#a-tour-of-the-rust-standard-library">§</a>A Tour of The Rust Standard Library</h2>
|
||||
<p>The rest of this crate documentation is dedicated to pointing out notable
|
||||
features of The Rust Standard Library.</p>
|
||||
<h3 id="containers-and-collections"><a class="doc-anchor" href="#containers-and-collections">§</a>Containers and collections</h3>
|
||||
<p>The <a href="option/index.html" title="mod std::option"><code>option</code></a> and <a href="result/index.html" title="mod std::result"><code>result</code></a> modules define optional and error-handling
|
||||
types, <a href="option/enum.Option.html" title="enum std::option::Option"><code>Option<T></code></a> and <a href="result/enum.Result.html" title="enum std::result::Result"><code>Result<T, E></code></a>. The <a href="iter/index.html" title="mod std::iter"><code>iter</code></a> module defines
|
||||
Rust’s iterator trait, <a href="iter/trait.Iterator.html" title="trait std::iter::Iterator"><code>Iterator</code></a>, which works with the <a href="../book/ch03-05-control-flow.html#looping-through-a-collection-with-for"><code>for</code></a> loop to
|
||||
access collections.</p>
|
||||
<p>The standard library exposes three common ways to deal with contiguous
|
||||
regions of memory:</p>
|
||||
<ul>
|
||||
<li><a href="vec/struct.Vec.html" title="struct std::vec::Vec"><code>Vec<T></code></a> - A heap-allocated <em>vector</em> that is resizable at runtime.</li>
|
||||
<li><a href="primitive.array.html" title="primitive array"><code>[T; N]</code></a> - An inline <em>array</em> with a fixed size at compile time.</li>
|
||||
<li><a href="primitive.slice.html" title="primitive slice"><code>[T]</code></a> - A dynamically sized <em>slice</em> into any other kind of contiguous
|
||||
storage, whether heap-allocated or not.</li>
|
||||
</ul>
|
||||
<p>Slices can only be handled through some kind of <em>pointer</em>, and as such come
|
||||
in many flavors such as:</p>
|
||||
<ul>
|
||||
<li><code>&[T]</code> - <em>shared slice</em></li>
|
||||
<li><code>&mut [T]</code> - <em>mutable slice</em></li>
|
||||
<li><a href="boxed/index.html" title="mod std::boxed"><code>Box<[T]></code></a> - <em>owned slice</em></li>
|
||||
</ul>
|
||||
<p><a href="primitive.str.html" title="primitive str"><code>str</code></a>, a UTF-8 string slice, is a primitive type, and the standard library
|
||||
defines many methods for it. Rust <a href="primitive.str.html" title="primitive str"><code>str</code></a>s are typically accessed as
|
||||
immutable references: <code>&str</code>. Use the owned <a href="string/struct.String.html" title="struct std::string::String"><code>String</code></a> for building and
|
||||
mutating strings.</p>
|
||||
<p>For converting to strings use the <a href="macro.format.html" title="macro std::format"><code>format!</code></a> macro, and for converting from
|
||||
strings use the <a href="str/trait.FromStr.html" title="trait std::str::FromStr"><code>FromStr</code></a> trait.</p>
|
||||
<p>Data may be shared by placing it in a reference-counted box or the <a href="rc/struct.Rc.html" title="struct std::rc::Rc"><code>Rc</code></a>
|
||||
type, and if further contained in a <a href="cell/struct.Cell.html" title="struct std::cell::Cell"><code>Cell</code></a> or <a href="cell/struct.RefCell.html" title="struct std::cell::RefCell"><code>RefCell</code></a>, may be mutated
|
||||
as well as shared. Likewise, in a concurrent setting it is common to pair an
|
||||
atomically-reference-counted box, <a href="sync/struct.Arc.html" title="struct std::sync::Arc"><code>Arc</code></a>, with a <a href="sync/struct.Mutex.html" title="struct std::sync::Mutex"><code>Mutex</code></a> to get the same
|
||||
effect.</p>
|
||||
<p>The <a href="collections/index.html" title="mod std::collections"><code>collections</code></a> module defines maps, sets, linked lists and other
|
||||
typical collection types, including the common <a href="collections/struct.HashMap.html" title="struct std::collections::HashMap"><code>HashMap<K, V></code></a>.</p>
|
||||
<h3 id="platform-abstractions-and-io"><a class="doc-anchor" href="#platform-abstractions-and-io">§</a>Platform abstractions and I/O</h3>
|
||||
<p>Besides basic data types, the standard library is largely concerned with
|
||||
abstracting over differences in common platforms, most notably Windows and
|
||||
Unix derivatives.</p>
|
||||
<p>Common types of I/O, including <a href="fs/struct.File.html" title="struct std::fs::File">files</a>, <a href="net/struct.TcpStream.html" title="struct std::net::TcpStream">TCP</a>, and <a href="net/struct.UdpSocket.html" title="struct std::net::UdpSocket">UDP</a>, are defined in
|
||||
the <a href="io/index.html" title="mod std::io"><code>io</code></a>, <a href="fs/index.html" title="mod std::fs"><code>fs</code></a>, and <a href="net/index.html" title="mod std::net"><code>net</code></a> modules.</p>
|
||||
<p>The <a href="thread/index.html" title="mod std::thread"><code>thread</code></a> module contains Rust’s threading abstractions. <a href="sync/index.html" title="mod std::sync"><code>sync</code></a>
|
||||
contains further primitive shared memory types, including <a href="sync/atomic/index.html" title="mod std::sync::atomic"><code>atomic</code></a>, <a href="sync/mpmc/index.html" title="mod std::sync::mpmc"><code>mpmc</code></a> and
|
||||
<a href="sync/mpsc/index.html" title="mod std::sync::mpsc"><code>mpsc</code></a>, which contains the channel types for message passing.</p>
|
||||
<h2 id="use-before-and-after-main"><a class="doc-anchor" href="#use-before-and-after-main">§</a>Use before and after <code>main()</code></h2>
|
||||
<p>Many parts of the standard library are expected to work before and after <code>main()</code>;
|
||||
but this is not guaranteed or ensured by tests. It is recommended that you write your own tests
|
||||
and run them on each platform you wish to support.
|
||||
This means that use of <code>std</code> before/after main, especially of features that interact with the
|
||||
OS or global state, is exempted from stability and portability guarantees and instead only
|
||||
provided on a best-effort basis. Nevertheless bug reports are appreciated.</p>
|
||||
<p>On the other hand <code>core</code> and <code>alloc</code> are most likely to work in such environments with
|
||||
the caveat that any hookable behavior such as panics, oom handling or allocators will also
|
||||
depend on the compatibility of the hooks.</p>
|
||||
<p>Some features may also behave differently outside main, e.g. stdio could become unbuffered,
|
||||
some panics might turn into aborts, backtraces might not get symbolicated or similar.</p>
|
||||
<p>Non-exhaustive list of known limitations:</p>
|
||||
<ul>
|
||||
<li>after-main use of thread-locals, which also affects additional features:
|
||||
<ul>
|
||||
<li><a href="thread/fn.current.html" title="fn std::thread::current"><code>thread::current()</code></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>under UNIX, before main, file descriptors 0, 1, and 2 may be unchanged
|
||||
(they are guaranteed to be open during main,
|
||||
and are opened to /dev/null O_RDWR if they weren’t open on program start)</li>
|
||||
</ul>
|
||||
</div></details><h2 id="primitives" class="section-header">Primitive Types<a href="#primitives" class="anchor">§</a></h2><dl class="item-table"><dt><a class="primitive" href="primitive.array.html" title="primitive std::array">array</a></dt><dd>A fixed-size array, denoted <code>[T; N]</code>, for the element type, <code>T</code>, and the
|
||||
non-negative compile-time constant size, <code>N</code>.</dd><dt><a class="primitive" href="primitive.bool.html" title="primitive std::bool">bool</a></dt><dd>The boolean type.</dd><dt><a class="primitive" href="primitive.char.html" title="primitive std::char">char</a></dt><dd>A character type.</dd><dt><a class="primitive" href="primitive.f32.html" title="primitive std::f32">f32</a></dt><dd>A 32-bit floating-point type (specifically, the “binary32” type defined in IEEE 754-2008).</dd><dt><a class="primitive" href="primitive.f64.html" title="primitive std::f64">f64</a></dt><dd>A 64-bit floating-point type (specifically, the “binary64” type defined in IEEE 754-2008).</dd><dt><a class="primitive" href="primitive.fn.html" title="primitive std::fn">fn</a></dt><dd>Function pointers, like <code>fn(usize) -> bool</code>.</dd><dt><a class="primitive" href="primitive.i8.html" title="primitive std::i8">i8</a></dt><dd>The 8-bit signed integer type.</dd><dt><a class="primitive" href="primitive.i16.html" title="primitive std::i16">i16</a></dt><dd>The 16-bit signed integer type.</dd><dt><a class="primitive" href="primitive.i32.html" title="primitive std::i32">i32</a></dt><dd>The 32-bit signed integer type.</dd><dt><a class="primitive" href="primitive.i64.html" title="primitive std::i64">i64</a></dt><dd>The 64-bit signed integer type.</dd><dt><a class="primitive" href="primitive.i128.html" title="primitive std::i128">i128</a></dt><dd>The 128-bit signed integer type.</dd><dt><a class="primitive" href="primitive.isize.html" title="primitive std::isize">isize</a></dt><dd>The pointer-sized signed integer type.</dd><dt><a class="primitive" href="primitive.pointer.html" title="primitive std::pointer">pointer</a></dt><dd>Raw, unsafe pointers, <code>*const T</code>, and <code>*mut T</code>.</dd><dt><a class="primitive" href="primitive.reference.html" title="primitive std::reference">reference</a></dt><dd>References, <code>&T</code> and <code>&mut T</code>.</dd><dt><a class="primitive" href="primitive.slice.html" title="primitive std::slice">slice</a></dt><dd>A dynamically-sized view into a contiguous sequence, <code>[T]</code>.</dd><dt><a class="primitive" href="primitive.str.html" title="primitive std::str">str</a></dt><dd>String slices.</dd><dt><a class="primitive" href="primitive.tuple.html" title="primitive std::tuple">tuple</a></dt><dd>A finite heterogeneous sequence, <code>(T, U, ..)</code>.</dd><dt><a class="primitive" href="primitive.u8.html" title="primitive std::u8">u8</a></dt><dd>The 8-bit unsigned integer type.</dd><dt><a class="primitive" href="primitive.u16.html" title="primitive std::u16">u16</a></dt><dd>The 16-bit unsigned integer type.</dd><dt><a class="primitive" href="primitive.u32.html" title="primitive std::u32">u32</a></dt><dd>The 32-bit unsigned integer type.</dd><dt><a class="primitive" href="primitive.u64.html" title="primitive std::u64">u64</a></dt><dd>The 64-bit unsigned integer type.</dd><dt><a class="primitive" href="primitive.u128.html" title="primitive std::u128">u128</a></dt><dd>The 128-bit unsigned integer type.</dd><dt><a class="primitive" href="primitive.unit.html" title="primitive std::unit">unit</a></dt><dd>The <code>()</code> type, also called “unit”.</dd><dt><a class="primitive" href="primitive.usize.html" title="primitive std::usize">usize</a></dt><dd>The pointer-sized unsigned integer type.</dd><dt><a class="primitive" href="primitive.f16.html" title="primitive std::f16">f16</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>A 16-bit floating-point type (specifically, the “binary16” type defined in IEEE 754-2008).</dd><dt><a class="primitive" href="primitive.f128.html" title="primitive std::f128">f128</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>A 128-bit floating-point type (specifically, the “binary128” type defined in IEEE 754-2008).</dd><dt><a class="primitive" href="primitive.never.html" title="primitive std::never">never</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>The <code>!</code> type, also called “never”.</dd></dl><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="alloc/index.html" title="mod std::alloc">alloc</a></dt><dd>Memory allocation APIs.</dd><dt><a class="mod" href="any/index.html" title="mod std::any">any</a></dt><dd>Utilities for dynamic typing or type reflection.</dd><dt><a class="mod" href="arch/index.html" title="mod std::arch">arch</a></dt><dd>SIMD and vendor intrinsics module.</dd><dt><a class="mod" href="array/index.html" title="mod std::array">array</a></dt><dd>Utilities for the array primitive type.</dd><dt><a class="mod" href="ascii/index.html" title="mod std::ascii">ascii</a></dt><dd>Operations on ASCII strings and characters.</dd><dt><a class="mod" href="backtrace/index.html" title="mod std::backtrace">backtrace</a></dt><dd>Support for capturing a stack backtraLine truncated
|
||||
possibly shadowed by other declared types.</dd><dt><a class="mod" href="process/index.html" title="mod std::process">process</a></dt><dd>A module for working with processes.</dd><dt><a class="mod" href="ptr/index.html" title="mod std::ptr">ptr</a></dt><dd>Manually manage memory through raw pointers.</dd><dt><a class="mod" href="rc/index.html" title="mod std::rc">rc</a></dt><dd>Single-threaded reference-counting pointers. ‘Rc’ stands for ‘Reference
|
||||
Counted’.</dd><dt><a class="mod" href="result/index.html" title="mod std::result">result</a></dt><dd>Error handling with the <code>Result</code> type.</dd><dt><a class="mod" href="slice/index.html" title="mod std::slice">slice</a></dt><dd>Utilities for the slice primitive type.</dd><dt><a class="mod" href="str/index.html" title="mod std::str">str</a></dt><dd>Utilities for the <code>str</code> primitive type.</dd><dt><a class="mod" href="string/index.html" title="mod std::string">string</a></dt><dd>A UTF-8–encoded, growable string.</dd><dt><a class="mod" href="sync/index.html" title="mod std::sync">sync</a></dt><dd>Useful synchronization primitives.</dd><dt><a class="mod" href="task/index.html" title="mod std::task">task</a></dt><dd>Types and Traits for working with asynchronous tasks.</dd><dt><a class="mod" href="thread/index.html" title="mod std::thread">thread</a></dt><dd>Native threads.</dd><dt><a class="mod" href="time/index.html" title="mod std::time">time</a></dt><dd>Temporal quantification.</dd><dt><a class="mod" href="u8/index.html" title="mod std::u8">u8</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.u8.html" title="primitive u8"><code>u8</code> primitive type</a>.</dd><dt><a class="mod" href="u16/index.html" title="mod std::u16">u16</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.u16.html" title="primitive u16"><code>u16</code> primitive type</a>.</dd><dt><a class="mod" href="u32/index.html" title="mod std::u32">u32</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.u32.html" title="primitive u32"><code>u32</code> primitive type</a>.</dd><dt><a class="mod" href="u64/index.html" title="mod std::u64">u64</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.u64.html" title="primitive u64"><code>u64</code> primitive type</a>.</dd><dt><a class="mod" href="u128/index.html" title="mod std::u128">u128</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.u128.html" title="primitive u128"><code>u128</code> primitive type</a>.</dd><dt><a class="mod" href="usize/index.html" title="mod std::usize">usize</a><wbr><span class="stab deprecated" title="">Deprecation planned</span></dt><dd>Redundant constants module for the <a href="primitive.usize.html" title="primitive usize"><code>usize</code> primitive type</a>.</dd><dt><a class="mod" href="vec/index.html" title="mod std::vec">vec</a></dt><dd>A contiguous growable array type with heap-allocated contents, written
|
||||
<code>Vec<T></code>.</dd><dt><a class="mod" href="assert_matches/index.html" title="mod std::assert_matches">assert_<wbr>matches</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Unstable module containing the unstable <code>assert_matches</code> macro.</dd><dt><a class="mod" href="async_iter/index.html" title="mod std::async_iter">async_<wbr>iter</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Composable asynchronous iteration.</dd><dt><a class="mod" href="autodiff/index.html" title="mod std::autodiff">autodiff</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>This module provides support for automatic differentiation.</dd><dt><a class="mod" href="bstr/index.html" title="mod std::bstr">bstr</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>The <code>ByteStr</code> and <code>ByteString</code> types and trait implementations.</dd><dt><a class="mod" href="f16/index.html" title="mod std::f16">f16</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Constants for the <code>f16</code> half-precision floating point type.</dd><dt><a class="mod" href="f128/index.html" title="mod std::f128">f128</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Constants for the <code>f128</code> quadruple-precision floating point type.</dd><dt><a class="mod" href="from/index.html" title="mod std::from">from</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Unstable module containing the unstable <code>From</code> derive macro.</dd><dt><a class="mod" href="intrinsics/index.html" title="mod std::intrinsics">intrinsics</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Compiler intrinsics.</dd><dt><a class="mod" href="pat/index.html" title="mod std::pat">pat</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Helper module for exporting the <code>pattern_type</code> macro</dd><dt><a class="mod" href="random/index.html" title="mod std::random">random</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Random value generation.</dd><dt><a class="mod" href="range/index.html" title="mod std::range">range</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Experimental replacement range types</dd><dt><a class="mod" href="simd/index.html" title="mod std::simd">simd</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Portable SIMD module.</dd><dt><a class="mod" href="unsafe_binder/index.html" title="mod std::unsafe_binder">unsafe_<wbr>binder</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Operators used to turn types into unsafe binders and back.</dd></dl><h2 id="macros" class="section-header">Macros<a href="#macros" class="anchor">§</a></h2><dl class="item-table"><dt><a class="macro" href="macro.assert.html" title="macro std::assert">assert</a></dt><dd>Asserts that a boolean expression is <code>true</code> at runtime.</dd><dt><a class="macro" href="macro.assert_eq.html" title="macro std::assert_eq">assert_<wbr>eq</a></dt><dd>Asserts that two expressions are equal to each other (using <a href="cmp/trait.PartialEq.html" title="trait std::cmp::PartialEq"><code>PartialEq</code></a>).</dd><dt><a class="macro" href="macro.assert_ne.html" title="macro std::assert_ne">assert_<wbr>ne</a></dt><dd>Asserts that two expressions are not equal to each other (using <a href="cmp/trait.PartialEq.html" title="trait std::cmp::PartialEq"><code>PartialEq</code></a>).</dd><dt><a class="macro" href="macro.cfg.html" title="macro std::cfg">cfg</a></dt><dd>Evaluates boolean combinations of configuration flags at compile-time.</dd><dt><a class="macro" href="macro.column.html" title="macro std::column">column</a></dt><dd>Expands to the column number at which it was invoked.</dd><dt><a class="macro" href="macro.compile_error.html" title="macro std::compile_error">compile_<wbr>error</a></dt><dd>Causes compilation to fail with the given error message when encountered.</dd><dt><a class="macro" href="macro.concat.html" title="macro std::concat">concat</a></dt><dd>Concatenates literals into a static string slice.</dd><dt><a class="macro" href="macro.dbg.html" title="macro std::dbg">dbg</a></dt><dd>Prints and returns the value of a given expression for quick and dirty
|
||||
debugging.</dd><dt><a class="macro" href="macro.debug_assert.html" title="macro std::debug_assert">debug_<wbr>assert</a></dt><dd>Asserts that a boolean expression is <code>true</code> at runtime.</dd><dt><a class="macro" href="macro.debug_assert_eq.html" title="macro std::debug_assert_eq">debug_<wbr>assert_<wbr>eq</a></dt><dd>Asserts that two expressions are equal to each other.</dd><dt><a class="macro" href="macro.debug_assert_ne.html" title="macro std::debug_assert_ne">debug_<wbr>assert_<wbr>ne</a></dt><dd>Asserts that two expressions are not equal to each other.</dd><dt><a class="macro" href="macro.env.html" title="macro std::env">env</a></dt><dd>Inspects an environment variable at compile time.</dd><dt><a class="macro" href="macro.eprint.html" title="macro std::eprint">eprint</a></dt><dd>Prints to the standard error.</dd><dt><a class="macro" href="macro.eprintln.html" title="macro std::eprintln">eprintln</a></dt><dd>Prints to the standard error, with a newline.</dd><dt><a class="macro" href="macro.file.html" title="macro std::file">file</a></dt><dd>Expands to the file name in which it was invoked.</dd><dt><a class="macro" href="macro.format.html" title="macro std::format">format</a></dt><dd>Creates a <code>String</code> using interpolation of runtime expressions.</dd><dt><a class="macro" href="macro.format_args.html" title="macro std::format_args">format_<wbr>args</a></dt><dd>Constructs parameters for the other string-formatting macros.</dd><dt><a class="macro" href="macro.include.html" title="macro std::include">include</a></dt><dd>Parses a file as an expression or an item according to the context.</dd><dt><a class="macro" href="macro.include_bytes.html" title="macro std::include_bytes">include_<wbr>bytes</a></dt><dd>Includes a file as a reference to a byte array.</dd><dt><a class="macro" href="macro.include_str.html" title="macro std::include_str">include_<wbr>str</a></dt><dd>Includes a UTF-8 encoded file as a string.</dd><dt><a class="macro" href="macro.is_x86_feature_detected.html" title="macro std::is_x86_feature_detected">is_<wbr>x86_<wbr>feature_<wbr>detected</a></dt><dd>Check for the presence of a CPU feature at runtime.</dd><dt><a class="macro" href="macro.line.html" title="macro std::line">line</a></dt><dd>Expands to the line number on which it was invoked.</dd><dt><a class="macro" href="macro.matches.html" title="macro std::matches">matches</a></dt><dd>Returns whether the given expression matches the provided pattern.</dd><dt><a class="macro" href="macro.module_path.html" title="macro std::module_path">module_<wbr>path</a></dt><dd>Expands to a string that represents the current module path.</dd><dt><a class="macro" href="macro.option_env.html" title="macro std::option_env">option_<wbr>env</a></dt><dd>Optionally inspects an environment variable at compile time.</dd><dt><a class="macro" href="macro.panic.html" title="macro std::panic">panic</a></dt><dd>Panics the current thread.</dd><dt><a class="macro" href="macro.print.html" title="macro std::print">print</a></dt><dd>Prints to the standard output.</dd><dt><a class="macro" href="macro.println.html" title="macro std::println">println</a></dt><dd>Prints to the standard output, with a newline.</dd><dt><a class="macro" href="macro.stringify.html" title="macro std::stringify">stringify</a></dt><dd>Stringifies its arguments.</dd><dt><a class="macro" href="macro.thread_local.html" title="macro std::thread_local">thread_<wbr>local</a></dt><dd>Declare a new thread local storage key of type <a href="thread/struct.LocalKey.html" title="struct std::thread::LocalKey"><code>std::thread::LocalKey</code></a>.</dd><dt><a class="macro" href="macro.todo.html" title="macro std::todo">todo</a></dt><dd>Indicates unfinished code.</dd><dt><a class="macro" href="macro.try.html" title="macro std::try">try</a><wbr><span class="stab deprecated" title="">Deprecated</span></dt><dd>Unwraps a result or propagates its error.</dd><dt><a class="macro" href="macro.unimplemented.html" title="macro std::unimplemented">unimplemented</a></dt><dd>Indicates unimplemented code by panicking with a message of “not implemented”.</dd><dt><a class="macro" href="macro.unreachable.html" title="macro std::unreachable">unreachable</a></dt><dd>Indicates unreachable code.</dd><dt><a class="macro" href="macro.vec.html" title="macro std::vec">vec</a></dt><dd>Creates a <a href="vec/struct.Vec.html" title="struct std::vec::Vec"><code>Vec</code></a> containing the arguments.</dd><dt><a class="macro" href="macro.write.html" title="macro std::write">write</a></dt><dd>Writes formatted data into a buffer.</dd><dt><a class="macro" href="macro.writeln.html" title="macro std::writeln">writeln</a></dt><dd>Writes formatted data into a buffer, with a newline appended.</dd><dt><a class="macro" href="macro.cfg_select.html" title="macro std::cfg_select">cfg_<wbr>select</a><wbr><span class="stab unstable" title="">Experimental</span></dt><dd>Selects code at compile-time based on <code>cfg</code> predicates.</dLine truncated
|
||||
definition.</dd><dt><a class="keyword" href="keyword.as.html" title="keyword std::as">as</a></dt><dd>Cast between types, rename an import, or qualify paths to associated items.</dd><dt><a class="keyword" href="keyword.async.html" title="keyword std::async">async</a></dt><dd>Returns a <a href="future/trait.Future.html" title="trait std::future::Future"><code>Future</code></a> instead of blocking the current thread.</dd><dt><a class="keyword" href="keyword.await.html" title="keyword std::await">await</a></dt><dd>Suspend execution until the result of a <a href="future/trait.Future.html" title="trait std::future::Future"><code>Future</code></a> is ready.</dd><dt><a class="keyword" href="keyword.become.html" title="keyword std::become">become</a></dt><dd>Perform a tail-call of a function.</dd><dt><a class="keyword" href="keyword.break.html" title="keyword std::break">break</a></dt><dd>Exit early from a loop or labelled block.</dd><dt><a class="keyword" href="keyword.const.html" title="keyword std::const">const</a></dt><dd>Compile-time constants, compile-time blocks, compile-time evaluable functions, and raw pointers.</dd><dt><a class="keyword" href="keyword.continue.html" title="keyword std::continue">continue</a></dt><dd>Skip to the next iteration of a loop.</dd><dt><a class="keyword" href="keyword.crate.html" title="keyword std::crate">crate</a></dt><dd>A Rust binary or library.</dd><dt><a class="keyword" href="keyword.dyn.html" title="keyword std::dyn">dyn</a></dt><dd><code>dyn</code> is a prefix of a <a href="../book/ch17-02-trait-objects.html">trait object</a>’s type.</dd><dt><a class="keyword" href="keyword.else.html" title="keyword std::else">else</a></dt><dd>What expression to evaluate when an <a href="keyword.if.html"><code>if</code></a> condition evaluates to <a href="keyword.false.html"><code>false</code></a>.</dd><dt><a class="keyword" href="keyword.enum.html" title="keyword std::enum">enum</a></dt><dd>A type that can be any one of several variants.</dd><dt><a class="keyword" href="keyword.extern.html" title="keyword std::extern">extern</a></dt><dd>Link to or import external code.</dd><dt><a class="keyword" href="keyword.false.html" title="keyword std::false">false</a></dt><dd>A value of type <a href="primitive.bool.html" title="primitive bool"><code>bool</code></a> representing logical <strong>false</strong>.</dd><dt><a class="keyword" href="keyword.fn.html" title="keyword std::fn">fn</a></dt><dd>A function or function pointer.</dd><dt><a class="keyword" href="keyword.for.html" title="keyword std::for">for</a></dt><dd>Iteration with <a href="keyword.in.html"><code>in</code></a>, trait implementation with <a href="keyword.impl.html"><code>impl</code></a>, or <a href="../reference/trait-bounds.html#higher-ranked-trait-bounds">higher-ranked trait bounds</a>
|
||||
(<code>for<'a></code>).</dd><dt><a class="keyword" href="keyword.if.html" title="keyword std::if">if</a></dt><dd>Evaluate a block if a condition holds.</dd><dt><a class="keyword" href="keyword.impl.html" title="keyword std::impl">impl</a></dt><dd>Implementations of functionality for a type, or a type implementing some functionality.</dd><dt><a class="keyword" href="keyword.in.html" title="keyword std::in">in</a></dt><dd>Iterate over a series of values with <a href="keyword.for.html"><code>for</code></a>.</dd><dt><a class="keyword" href="keyword.let.html" title="keyword std::let">let</a></dt><dd>Bind a value to a variable.</dd><dt><a class="keyword" href="keyword.loop.html" title="keyword std::loop">loop</a></dt><dd>Loop indefinitely.</dd><dt><a class="keyword" href="keyword.match.html" title="keyword std::match">match</a></dt><dd>Control flow based on pattern matching.</dd><dt><a class="keyword" href="keyword.mod.html" title="keyword std::mod">mod</a></dt><dd>Organize code into <a href="../reference/items/modules.html">modules</a>.</dd><dt><a class="keyword" href="keyword.move.html" title="keyword std::move">move</a></dt><dd>Capture a <a href="../book/ch13-01-closures.html">closure</a>’s environment by value.</dd><dt><a class="keyword" href="keyword.mut.html" title="keyword std::mut">mut</a></dt><dd>A mutable variable, reference, or pointer.</dd><dt><a class="keyword" href="keyword.pub.html" title="keyword std::pub">pub</a></dt><dd>Make an item visible to others.</dd><dt><a class="keyword" href="keyword.ref.html" title="keyword std::ref">ref</a></dt><dd>Bind by reference during pattern matching.</dd><dt><a class="keyword" href="keyword.return.html" title="keyword std::return">return</a></dt><dd>Returns a value from a function.</dd><dt><a class="keyword" href="keyword.self.html" title="keyword std::self">self</a></dt><dd>The receiver of a method, or the current module.</dd><dt><a class="keyword" href="keyword.static.html" title="keyword std::static">static</a></dt><dd>A static item is a value which is valid for the entire duration of your
|
||||
program (a <code>'static</code> lifetime).</dd><dt><a class="keyword" href="keyword.struct.html" title="keyword std::struct">struct</a></dt><dd>A type that is composed of other types.</dd><dt><a class="keyword" href="keyword.super.html" title="keyword std::super">super</a></dt><dd>The parent of the current <a href="../reference/items/modules.html">module</a>.</dd><dt><a class="keyword" href="keyword.trait.html" title="keyword std::trait">trait</a></dt><dd>A common interface for a group of types.</dd><dt><a class="keyword" href="keyword.true.html" title="keyword std::true">true</a></dt><dd>A value of type <a href="primitive.bool.html" title="primitive bool"><code>bool</code></a> representing logical <strong>true</strong>.</dd><dt><a class="keyword" href="keyword.type.html" title="keyword std::type">type</a></dt><dd>Define an <a href="../reference/items/type-aliases.html">alias</a> for an existing type.</dd><dt><a class="keyword" href="keyword.union.html" title="keyword std::union">union</a></dt><dd>The <a href="../reference/items/unions.html">Rust equivalent of a C-style union</a>.</dd><dt><a class="keyword" href="keyword.unsafe.html" title="keyword std::unsafe">unsafe</a></dt><dd>Code or interfaces whose <a href="../book/ch19-01-unsafe-rust.html">memory safety</a> cannot be verified by the type
|
||||
system.</dd><dt><a class="keyword" href="keyword.use.html" title="keyword std::use">use</a></dt><dd>Import or rename items from other crates or modules, use values under ergonomic clones
|
||||
semantic, or specify precise capturing with <code>use<..></code>.</dd><dt><a class="keyword" href="keyword.where.html" title="keyword std::where">where</a></dt><dd>Add constraints that must be upheld to use an item.</dd><dt><a class="keyword" href="keyword.while.html" title="keyword std::while">while</a></dt><dd>Loop while a condition is upheld.</dd></dl><script type="text/json" id="notable-traits-data">{"EscapeDefault":"<h3>Notable traits for <code><a class=\"struct\" href=\"ascii/struct.EscapeDefault.html\" title=\"struct std::ascii::EscapeDefault\">EscapeDefault</a></code></h3><pre><code><div class=\"where\">impl <a class=\"trait\" href=\"iter/trait.Iterator.html\" title=\"trait std::iter::Iterator\">Iterator</a> for <a class=\"struct\" href=\"ascii/struct.EscapeDefault.html\" title=\"struct std::ascii::EscapeDefault\">EscapeDefault</a></div><div class=\"where\"> type <a href=\"iter/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"primitive.u8.html\">u8</a>;</div>","IntoIter<T>":"<h3>Notable traits for <code><a class=\"struct\" href=\"result/struct.IntoIter.html\" title=\"struct std::result::IntoIter\">IntoIter</a><T></code></h3><pre><code><div class=\"where\">impl<T> <a class=\"trait\" href=\"iter/trait.Iterator.html\" title=\"trait std::iter::Iterator\">Iterator</a> for <a class=\"struct\" href=\"result/struct.IntoIter.html\" title=\"struct std::result::IntoIter\">IntoIter</a><T></div><div class=\"where\"> type <a href=\"iter/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = T;</div>","Iter<'_, T>":"<h3>Notable traits for <code><a class=\"struct\" href=\"result/struct.Iter.html\" title=\"struct std::result::Iter\">Iter</a><'a, T></code></h3><pre><code><div class=\"where\">impl<'a, T> <a class=\"trait\" href=\"iter/trait.Iterator.html\" title=\"trait std::iter::Iterator\">Iterator</a> for <a class=\"struct\" href=\"result/struct.Iter.html\" title=\"struct std::result::Iter\">Iter</a><'a, T></div><div class=\"where\"> type <a href=\"iter/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"primitive.reference.html\">&'a T</a>;</div>","IterMut<'_, T>":"<h3>Notable traits for <code><a class=\"struct\" href=\"result/struct.IterMut.html\" title=\"struct std::result::IterMut\">IterMut</a><'a, T></code></h3><pre><code><div class=\"where\">impl<'a, T> <a class=\"trait\" href=\"iter/trait.Iterator.html\" title=\"trait std::iter::Iterator\">Iterator</a> for <a class=\"struct\" href=\"result/struct.IterMut.html\" title=\"struct std::result::IterMut\">IterMut</a><'a, T></div><div class=\"where\"> type <a href=\"iter/trait.Iterator.html#associatedtype.Item\" class=\"associatedtype\">Item</a> = <a class=\"primitive\" href=\"primitive.reference.html\">&'a mut T</a>;</div>"}</script></section><section id="alternative-display" class="content"><section id="search"><div class="main-heading search-results-main-heading"><nav class="sub">
|
||||
<form class="search-form">
|
||||
<span></span> <!-- This empty span is a hacky fix for Safari: see #93184 -->
|
||||
<input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Type ‘S’ or ‘/’ to search, ‘?’ for more options…" type="search">
|
||||
</form>
|
||||
</nav><div class="search-switcher">Search results in <div id="crate-search-div"><select id="crate-search"><option value="all crates">all crates</option><option value="alloc" false="">alloc</option><option value="core" false="">core</option><option value="proc_macro" false="">proc_macro</option><option value="std" false="">std</option><option value="std_detect" false="">std_detect</option><option value="test" false="">test</option></select></div></div><rustdoc-toolbar>
|
||||
<div id="search-button" tabindex="-1">
|
||||
<a href="https://doc.rust-lang.org/stable/std/index.html?search=test"><span class="label">Exit</span></a>
|
||||
</div>
|
||||
<div class="settings-menu" tabindex="-1">
|
||||
<a href="../settings.html"><span class="label">Settings</span></a>
|
||||
</div>
|
||||
<div class="help-menu" tabindex="-1">
|
||||
<a href="../help.html"><span class="label">Help</span></a>
|
||||
</div>
|
||||
<button id="toggle-all-docs" title="Collapse sections (shift-click to also collapse impl blocks)" disabled="disabled"><span class="label">Summary</span></button></rustdoc-toolbar></div><div class="search-out"><div id="search-tabs"><button class="selected">In Names<span class="count"> (168)</span></button><button class="">In Parameters<span class="count"> (0) </span></button><button class="">In Return Types<span class="count"> (0) </span></button></div><div id="results"><ul class="search-results active"><a class="result-method" href="../std/simd/struct.Mask.html#method.test"><span class="result-name"><span class="typename">method</span><div class="path"> <span>std::</span><span>simd::</span><span>Mask::</span><span class="method">test</span></div></span><div class="desc">Tests the value of the specified element.</div></a><a class="result-attr" href="../std/prelude/v1/attr.test.html"><span class="result-name"><span class="typename">attribute macro</span><div class="path"> <span>std::</span><span>prelude::</span><span>v1::</span><span class="attr">test</span></div></span><div class="desc">Attribute macro applied to a function to turn it into a …</div></a><a class="result-externcrate" href="../test/index.html"><span class="result-name"><span class="typename">extern crate</span><div class="path"> <span class="externcrate">test</span></div></span><div class="desc">Support code for rustc’s built in unit-test and …</div></a><a class="result-method" href="../core/simd/struct.Mask.html#method.test"><span class="result-name"><span class="typename">method</span><div class="path"> <span>core::</span><span>simd::</span><span>Mask::</span><span class="method">test</span></div></span><div class="desc">Tests the value of the specified element.</div></a><a class="result-mod" href="../test/test/index.html"><span class="result-name"><span class="typename">module</span><div class="path"> <span>test::</span><span class="mod">test</span></div></span><div class="desc"></div></a><a class="result-struct" href="../test/struct.TestId.html"><span class="result-name"><span class="typename">struct</span><div class="path"> <span>test::</span><span class="struct">TestId</span></div></span><div class="desc"></div></a><a class="result-enum" href="../test/enum.TestFn.html"><span class="result-name"><span class="typename">enum</span><div class="path"> <span>test::</span><span class="enum">TestFn</span></div></span><div class="desc"></div></a><a class="result-structfield" href="../test/struct.TestDescAndFn.html#structfield.testfn"><span class="result-name"><span class="typename">struct field</span><div class="path"> <span>test::</span><span>TestDescAndFn::</span><span class="structfield">testfn</span></div></span><div class="desc"></div></a><a class="result-struct" href="../test/struct.TestOpts.html"><span class="result-name"><span class="typename">struct</span><div class="path"> <span>test::</span><span class="struct">TestOpts</span></div></span><div class="desc"></div></a><a class="result-method" href="../test/struct.TestDesc.html#method.test_mode"><span class="result-name"><span class="typename">method</span><div class="path"> <span>test::</span><span>TestDesc::</span><span class="method">test_mode</span></div></span><div class="desc">Returns None for ignored test or tests that are just run, …</div></a><a class="result-import" href="../test/test/index.html#reexport.test_main"><span class="result-name"><span class="typename">re-export</span><div class="path"> <span>test::</span><span>test::</span><span class="import">test_main</span></div></span><div class="desc"></div></a><a class="result-attr" href="../std/prelude/v1/attr.test_case.html"><span class="result-name"><span class="typename">attribute macro</span><div class="path"> <span>std::</span><span>prelude::</span><span>v1::</span><span class="attr">test_case</span></div></span><div class="desc">An implementation detail of the <code>#[test]</code> and <code>#[bench]</code> …</div></a><a class="result-enum" href="../test/enum.TestName.html"><span class="result-name"><span class="typename">enum</span><div class="path"> <span>test::</span><span class="enum">TestName</span></div></span><div class="desc"></div></a><a class="result-struct" href="../test/struct.TestDesc.html"><span class="result-name"><span class="typename">struct</span><div class="path"> <span>test::</span><span class="struct">TestDesc</span></div></span><div class="desc"></div></a><a class="result-enum" href="../test/enum.TestType.html"><span class="result-name"><span class="typename">enum</span><div class="path"> <span>test::</span><span class="enum">TestType</span></div></span><div class="desc">Type of the test according to the Rust book conventions.</div></a><a class="result-structfield" href="../test/struct.TestDesc.html#structfield.test_type"><span class="result-name"><span class="typename">struct field</span><div class="path"> <span>test::</span><span>TestDesc::</span><span class="structLine truncated
|
||||
Reference in new issue
Block a user