Sophie

Sophie

distrib > Mageia > 6 > armv7hl > media > core-updates > by-pkgid > 4e2dbb669434a7691662cb2f0ad38972 > files > 14199

rust-doc-1.28.0-1.mga6.armv7hl.rpm

<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `f32` primitive in crate `std`."><meta name="keywords" content="rust, rustlang, rust-lang, f32"><title>f32 - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script><link rel="shortcut icon" href="https://doc.rust-lang.org/favicon.ico"></head><body class="rustdoc primitive"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../std/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a><p class='location'>Primitive Type f32</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#methods">Methods</a><div class="sidebar-links"><a href="#method.is_nan">is_nan</a><a href="#method.is_infinite">is_infinite</a><a href="#method.is_finite">is_finite</a><a href="#method.is_normal">is_normal</a><a href="#method.classify">classify</a><a href="#method.is_sign_positive">is_sign_positive</a><a href="#method.is_sign_negative">is_sign_negative</a><a href="#method.recip">recip</a><a href="#method.to_degrees">to_degrees</a><a href="#method.to_radians">to_radians</a><a href="#method.max">max</a><a href="#method.min">min</a><a href="#method.to_bits">to_bits</a><a href="#method.from_bits">from_bits</a><a href="#method.floor">floor</a><a href="#method.ceil">ceil</a><a href="#method.round">round</a><a href="#method.trunc">trunc</a><a href="#method.fract">fract</a><a href="#method.abs">abs</a><a href="#method.signum">signum</a><a href="#method.mul_add">mul_add</a><a href="#method.div_euc">div_euc</a><a href="#method.mod_euc">mod_euc</a><a href="#method.powi">powi</a><a href="#method.powf">powf</a><a href="#method.sqrt">sqrt</a><a href="#method.exp">exp</a><a href="#method.exp2">exp2</a><a href="#method.ln">ln</a><a href="#method.log">log</a><a href="#method.log2">log2</a><a href="#method.log10">log10</a><a href="#method.abs_sub">abs_sub</a><a href="#method.cbrt">cbrt</a><a href="#method.hypot">hypot</a><a href="#method.sin">sin</a><a href="#method.cos">cos</a><a href="#method.tan">tan</a><a href="#method.asin">asin</a><a href="#method.acos">acos</a><a href="#method.atan">atan</a><a href="#method.atan2">atan2</a><a href="#method.sin_cos">sin_cos</a><a href="#method.exp_m1">exp_m1</a><a href="#method.ln_1p">ln_1p</a><a href="#method.sinh">sinh</a><a href="#method.cosh">cosh</a><a href="#method.tanh">tanh</a><a href="#method.asinh">asinh</a><a href="#method.acosh">acosh</a><a href="#method.atanh">atanh</a></div><a class="sidebar-title" href="#implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Mul%3Cf32x2%3E">Mul&lt;f32x2&gt;</a><a href="#impl-Mul%3Cf32x8%3E">Mul&lt;f32x8&gt;</a><a href="#impl-Mul%3Cf32%3E">Mul&lt;f32&gt;</a><a href="#impl-Mul%3Cf32x16%3E">Mul&lt;f32x16&gt;</a><a href="#impl-Mul%3C%26%27a%20f32%3E">Mul&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Mul%3Cf32x4%3E">Mul&lt;f32x4&gt;</a><a href="#impl-Rem%3Cf32x16%3E">Rem&lt;f32x16&gt;</a><a href="#impl-Rem%3Cf32%3E">Rem&lt;f32&gt;</a><a href="#impl-Rem%3C%26%27a%20f32%3E">Rem&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Rem%3Cf32x4%3E">Rem&lt;f32x4&gt;</a><a href="#impl-Rem%3Cf32x8%3E">Rem&lt;f32x8&gt;</a><a href="#impl-Rem%3Cf32x2%3E">Rem&lt;f32x2&gt;</a><a href="#impl-Display">Display</a><a href="#impl-PartialEq%3Cf32%3E">PartialEq&lt;f32&gt;</a><a href="#impl-PartialOrd%3Cf32%3E">PartialOrd&lt;f32&gt;</a><a href="#impl-Sum%3C%26%27a%20f32%3E">Sum&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Sum%3Cf32%3E">Sum&lt;f32&gt;</a><a href="#impl-MulAssign%3C%26%27a%20f32%3E">MulAssign&lt;&amp;&#39;a f32&gt;</a><a href="#impl-MulAssign%3Cf32%3E">MulAssign&lt;f32&gt;</a><a href="#impl-Debug">Debug</a><a href="#impl-Sub%3Cf32%3E">Sub&lt;f32&gt;</a><a href="#impl-Sub%3Cf32x16%3E">Sub&lt;f32x16&gt;</a><a href="#impl-Sub%3Cf32x8%3E">Sub&lt;f32x8&gt;</a><a href="#impl-Sub%3Cf32x4%3E">Sub&lt;f32x4&gt;</a><a href="#impl-Sub%3C%26%27a%20f32%3E">Sub&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Sub%3Cf32x2%3E">Sub&lt;f32x2&gt;</a><a href="#impl-Neg">Neg</a><a href="#impl-SubAssign%3Cf32%3E">SubAssign&lt;f32&gt;</a><a href="#impl-SubAssign%3C%26%27a%20f32%3E">SubAssign&lt;&amp;&#39;a f32&gt;</a><a href="#impl-RemAssign%3C%26%27a%20f32%3E">RemAssign&lt;&amp;&#39;a f32&gt;</a><a href="#impl-RemAssign%3Cf32%3E">RemAssign&lt;f32&gt;</a><a href="#impl-UpperExp">UpperExp</a><a href="#impl-Div%3Cf32x4%3E">Div&lt;f32x4&gt;</a><a href="#impl-Div%3Cf32%3E">Div&lt;f32&gt;</a><a href="#impl-Div%3Cf32x2%3E">Div&lt;f32x2&gt;</a><a href="#impl-Div%3Cf32x16%3E">Div&lt;f32x16&gt;</a><a href="#impl-Div%3C%26%27a%20f32%3E">Div&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Div%3Cf32x8%3E">Div&lt;f32x8&gt;</a><a href="#impl-FromStr">FromStr</a><a href="#impl-LowerExp">LowerExp</a><a href="#impl-Clone">Clone</a><a href="#impl-AddAssign%3Cf32%3E">AddAssign&lt;f32&gt;</a><a href="#impl-AddAssign%3C%26%27a%20f32%3E">AddAssign&lt;&amp;&#39;a f32&gt;</a><a href="#impl-From%3Cu16%3E">From&lt;u16&gt;</a><a href="#impl-From%3Cu8%3E">From&lt;u8&gt;</a><a href="#impl-From%3Ci16%3E">From&lt;i16&gt;</a><a href="#impl-From%3Ci8%3E">From&lt;i8&gt;</a><a href="#impl-Copy">Copy</a><a href="#impl-DivAssign%3C%26%27a%20f32%3E">DivAssign&lt;&amp;&#39;a f32&gt;</a><a href="#impl-DivAssign%3Cf32%3E">DivAssign&lt;f32&gt;</a><a href="#impl-Add%3Cf32x4%3E">Add&lt;f32x4&gt;</a><a href="#impl-Add%3Cf32x8%3E">Add&lt;f32x8&gt;</a><a href="#impl-Add%3Cf32%3E">Add&lt;f32&gt;</a><a href="#impl-Add%3C%26%27a%20f32%3E">Add&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Add%3Cf32x2%3E">Add&lt;f32x2&gt;</a><a href="#impl-Add%3Cf32x16%3E">Add&lt;f32x16&gt;</a><a href="#impl-Default">Default</a><a href="#impl-Product%3C%26%27a%20f32%3E">Product&lt;&amp;&#39;a f32&gt;</a><a href="#impl-Product%3Cf32%3E">Product&lt;f32&gt;</a><a href="#impl-Float">Float</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a></div></div><p class='location'><a href='index.html'>std</a></p><script>window.sidebarCurrent = {name: 'f32', ty: 'primitive', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>Primitive Type <a class="primitive" href=''>f32</a></span><span class='out-of-band'><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span></span></h1><div class='docblock'><p>The 32-bit floating point type.</p>
<p><em><a href="f32/index.html">See also the <code>std::f32</code> module</a>.</em></p>
</div>
                    <h2 id='methods' class='small-section-header'>
                      Methods<a href='#methods' class='anchor'></a>
                    </h2>
                <h3 id='impl' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#156-477' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.is_nan' class="method"><span id='is_nan.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_nan' class='fnname'>is_nan</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#170-172' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if this value is <code>NaN</code> and false otherwise.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">nan</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">NAN</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">7.0_f32</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">nan</span>.<span class="ident">is_nan</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">f</span>.<span class="ident">is_nan</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20nan%20%3D%20f32%3A%3ANAN%3B%0Alet%20f%20%3D%207.0_f32%3B%0A%0Aassert!(nan.is_nan())%3B%0Aassert!(!f.is_nan())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.is_infinite' class="method"><span id='is_infinite.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_infinite' class='fnname'>is_infinite</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#193-195' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if this value is positive infinity or negative infinity and
false otherwise.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">7.0f32</span>;
<span class="kw">let</span> <span class="ident">inf</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">INFINITY</span>;
<span class="kw">let</span> <span class="ident">neg_inf</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">NEG_INFINITY</span>;
<span class="kw">let</span> <span class="ident">nan</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">NAN</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">f</span>.<span class="ident">is_infinite</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">nan</span>.<span class="ident">is_infinite</span>());

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">inf</span>.<span class="ident">is_infinite</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">neg_inf</span>.<span class="ident">is_infinite</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%207.0f32%3B%0Alet%20inf%20%3D%20f32%3A%3AINFINITY%3B%0Alet%20neg_inf%20%3D%20f32%3A%3ANEG_INFINITY%3B%0Alet%20nan%20%3D%20f32%3A%3ANAN%3B%0A%0Aassert!(!f.is_infinite())%3B%0Aassert!(!nan.is_infinite())%3B%0A%0Aassert!(inf.is_infinite())%3B%0Aassert!(neg_inf.is_infinite())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.is_finite' class="method"><span id='is_finite.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_finite' class='fnname'>is_finite</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#215-217' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if this number is neither infinite nor <code>NaN</code>.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">7.0f32</span>;
<span class="kw">let</span> <span class="ident">inf</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">INFINITY</span>;
<span class="kw">let</span> <span class="ident">neg_inf</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">NEG_INFINITY</span>;
<span class="kw">let</span> <span class="ident">nan</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">NAN</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">is_finite</span>());

<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">nan</span>.<span class="ident">is_finite</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">inf</span>.<span class="ident">is_finite</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">neg_inf</span>.<span class="ident">is_finite</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%207.0f32%3B%0Alet%20inf%20%3D%20f32%3A%3AINFINITY%3B%0Alet%20neg_inf%20%3D%20f32%3A%3ANEG_INFINITY%3B%0Alet%20nan%20%3D%20f32%3A%3ANAN%3B%0A%0Aassert!(f.is_finite())%3B%0A%0Aassert!(!nan.is_finite())%3B%0Aassert!(!inf.is_finite())%3B%0Aassert!(!neg_inf.is_finite())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.is_normal' class="method"><span id='is_normal.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_normal' class='fnname'>is_normal</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#242-244' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is neither zero, infinite,
<a href="https://en.wikipedia.org/wiki/Denormal_number">subnormal</a>, or <code>NaN</code>.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">min</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">MIN_POSITIVE</span>; <span class="comment">// 1.17549435e-38f32</span>
<span class="kw">let</span> <span class="ident">max</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">MAX</span>;
<span class="kw">let</span> <span class="ident">lower_than_min</span> <span class="op">=</span> <span class="number">1.0e-40_f32</span>;
<span class="kw">let</span> <span class="ident">zero</span> <span class="op">=</span> <span class="number">0.0_f32</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">min</span>.<span class="ident">is_normal</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">max</span>.<span class="ident">is_normal</span>());

<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">zero</span>.<span class="ident">is_normal</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">f32</span>::<span class="ident">NAN</span>.<span class="ident">is_normal</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">f32</span>::<span class="ident">INFINITY</span>.<span class="ident">is_normal</span>());
<span class="comment">// Values between `0` and `min` are Subnormal.</span>
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">lower_than_min</span>.<span class="ident">is_normal</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20min%20%3D%20f32%3A%3AMIN_POSITIVE%3B%20%2F%2F%201.17549435e-38f32%0Alet%20max%20%3D%20f32%3A%3AMAX%3B%0Alet%20lower_than_min%20%3D%201.0e-40_f32%3B%0Alet%20zero%20%3D%200.0_f32%3B%0A%0Aassert!(min.is_normal())%3B%0Aassert!(max.is_normal())%3B%0A%0Aassert!(!zero.is_normal())%3B%0Aassert!(!f32%3A%3ANAN.is_normal())%3B%0Aassert!(!f32%3A%3AINFINITY.is_normal())%3B%0A%2F%2F%20Values%20between%20%600%60%20and%20%60min%60%20are%20Subnormal.%0Aassert!(!lower_than_min.is_normal())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.classify' class="method"><span id='classify.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.classify' class='fnname'>classify</a>(self) -&gt; <a class="enum" href="../std/num/enum.FpCategory.html" title="enum std::num::FpCategory">FpCategory</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#261-273' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the floating point category of the number. If only one property
is going to be tested, it is generally faster to use the specific
predicate instead.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">num</span>::<span class="ident">FpCategory</span>;
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">num</span> <span class="op">=</span> <span class="number">12.4_f32</span>;
<span class="kw">let</span> <span class="ident">inf</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">INFINITY</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">num</span>.<span class="ident">classify</span>(), <span class="ident">FpCategory</span>::<span class="ident">Normal</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">inf</span>.<span class="ident">classify</span>(), <span class="ident">FpCategory</span>::<span class="ident">Infinite</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Anum%3A%3AFpCategory%3B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20num%20%3D%2012.4_f32%3B%0Alet%20inf%20%3D%20f32%3A%3AINFINITY%3B%0A%0Aassert_eq!(num.classify()%2C%20FpCategory%3A%3ANormal)%3B%0Aassert_eq!(inf.classify()%2C%20FpCategory%3A%3AInfinite)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.is_sign_positive' class="method"><span id='is_sign_positive.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_sign_positive' class='fnname'>is_sign_positive</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#287-289' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if and only if <code>self</code> has a positive sign, including <code>+0.0</code>, <code>NaN</code>s with
positive sign bit and positive infinity.</p>

<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">7.0_f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="op">-</span><span class="number">7.0_f32</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">is_sign_positive</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">g</span>.<span class="ident">is_sign_positive</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%207.0_f32%3B%0Alet%20g%20%3D%20-7.0_f32%3B%0A%0Aassert!(f.is_sign_positive())%3B%0Aassert!(!g.is_sign_positive())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.is_sign_negative' class="method"><span id='is_sign_negative.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.is_sign_negative' class='fnname'>is_sign_negative</a>(self) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#303-307' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if and only if <code>self</code> has a negative sign, including <code>-0.0</code>, <code>NaN</code>s with
negative sign bit and negative infinity.</p>

<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">7.0f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="op">-</span><span class="number">7.0f32</span>;

<span class="macro">assert</span><span class="macro">!</span>(<span class="op">!</span><span class="ident">f</span>.<span class="ident">is_sign_negative</span>());
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">g</span>.<span class="ident">is_sign_negative</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%207.0f32%3B%0Alet%20g%20%3D%20-7.0f32%3B%0A%0Aassert!(!f.is_sign_negative())%3B%0Aassert!(g.is_sign_negative())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.recip' class="method"><span id='recip.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.recip' class='fnname'>recip</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#321-323' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Takes the reciprocal (inverse) of a number, <code>1/x</code>.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">2.0_f32</span>;
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">recip</span>() <span class="op">-</span> (<span class="number">1.0</span><span class="op">/</span><span class="ident">x</span>)).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%202.0_f32%3B%0Alet%20abs_difference%20%3D%20(x.recip()%20-%20(1.0%2Fx)).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.to_degrees' class="method"><span id='to_degrees.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.to_degrees' class='fnname'>to_degrees</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.7.0'>1.7.0</div><a class='srclink' href='../src/core/num/f32.rs.html#338-342' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts radians to degrees.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>::{<span class="self">self</span>, <span class="ident">consts</span>};

<span class="kw">let</span> <span class="ident">angle</span> <span class="op">=</span> <span class="ident">consts</span>::<span class="ident">PI</span>;

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">angle</span>.<span class="ident">to_degrees</span>() <span class="op">-</span> <span class="number">180.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3A%3A%7Bself%2C%20consts%7D%3B%0A%0Alet%20angle%20%3D%20consts%3A%3API%3B%0A%0Alet%20abs_difference%20%3D%20(angle.to_degrees()%20-%20180.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.to_radians' class="method"><span id='to_radians.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.to_radians' class='fnname'>to_radians</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.7.0'>1.7.0</div><a class='srclink' href='../src/core/num/f32.rs.html#357-360' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts degrees to radians.</p>

<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>::{<span class="self">self</span>, <span class="ident">consts</span>};

<span class="kw">let</span> <span class="ident">angle</span> <span class="op">=</span> <span class="number">180.0f32</span>;

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">angle</span>.<span class="ident">to_radians</span>() <span class="op">-</span> <span class="ident">consts</span>::<span class="ident">PI</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3A%3A%7Bself%2C%20consts%7D%3B%0A%0Alet%20angle%20%3D%20180.0f32%3B%0A%0Alet%20abs_difference%20%3D%20(angle.to_radians()%20-%20consts%3A%3API).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.max' class="method"><span id='max.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.max' class='fnname'>max</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#374-384' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the maximum of the two numbers.</p>

<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="number">2.0f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">x</span>.<span class="ident">max</span>(<span class="ident">y</span>), <span class="ident">y</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20x%20%3D%201.0f32%3B%0Alet%20y%20%3D%202.0f32%3B%0A%0Aassert_eq!(x.max(y)%2C%20y)%3B%0A%7D">Run</a></pre>
<p>If one of the arguments is NaN, then the other argument is returned.</p>
</div><h4 id='method.min' class="method"><span id='min.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.min' class='fnname'>min</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/f32.rs.html#398-408' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the minimum of the two numbers.</p>

<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="number">2.0f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">x</span>.<span class="ident">min</span>(<span class="ident">y</span>), <span class="ident">x</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20x%20%3D%201.0f32%3B%0Alet%20y%20%3D%202.0f32%3B%0A%0Aassert_eq!(x.min(y)%2C%20x)%3B%0A%7D">Run</a></pre>
<p>If one of the arguments is NaN, then the other argument is returned.</p>
</div><h4 id='method.to_bits' class="method"><span id='to_bits.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.to_bits' class='fnname'>to_bits</a>(self) -&gt; <a class="primitive" href="primitive.u32.html">u32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.20.0'>1.20.0</div><a class='srclink' href='../src/core/num/f32.rs.html#429-431' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Raw transmutation to <code>u32</code>.</p>
<p>This is currently identical to <code>transmute::&lt;f32, u32&gt;(self)</code> on all platforms.</p>
<p>See <code>from_bits</code> for some discussion of the portability of this operation
(there are almost no issues).</p>
<p>Note that this function is distinct from <code>as</code> casting, which attempts to
preserve the <em>numeric</em> value, and not the bitwise value.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="macro">assert_ne</span><span class="macro">!</span>((<span class="number">1f32</span>).<span class="ident">to_bits</span>(), <span class="number">1f32</span> <span class="kw">as</span> <span class="ident">u32</span>); <span class="comment">// to_bits() is not casting!</span>
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="number">12.5f32</span>).<span class="ident">to_bits</span>(), <span class="number">0x41480000</span>);
<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Aassert_ne!((1f32).to_bits()%2C%201f32%20as%20u32)%3B%20%2F%2F%20to_bits()%20is%20not%20casting!%0Aassert_eq!((12.5f32).to_bits()%2C%200x41480000)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.from_bits' class="method"><span id='from_bits.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.from_bits' class='fnname'>from_bits</a>(v: <a class="primitive" href="primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.20.0'>1.20.0</div><a class='srclink' href='../src/core/num/f32.rs.html#473-476' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Raw transmutation from <code>u32</code>.</p>
<p>This is currently identical to <code>transmute::&lt;u32, f32&gt;(v)</code> on all platforms.
It turns out this is incredibly portable, for two reasons:</p>
<ul>
<li>Floats and Ints have the same endianness on all supported platforms.</li>
<li>IEEE-754 very precisely specifies the bit layout of floats.</li>
</ul>
<p>However there is one caveat: prior to the 2008 version of IEEE-754, how
to interpret the NaN signaling bit wasn't actually specified. Most platforms
(notably x86 and ARM) picked the interpretation that was ultimately
standardized in 2008, but some didn't (notably MIPS). As a result, all
signaling NaNs on MIPS are quiet NaNs on x86, and vice-versa.</p>
<p>Rather than trying to preserve signaling-ness cross-platform, this
implementation favours preserving the exact bits. This means that
any payloads encoded in NaNs will be preserved even if the result of
this method is sent over the network from an x86 machine to a MIPS one.</p>
<p>If the results of this method are only manipulated by the same
architecture that produced them, then there is no portability concern.</p>
<p>If the input isn't NaN, then there is no portability concern.</p>
<p>If you don't care about signalingness (very likely), then there is no
portability concern.</p>
<p>Note that this function is distinct from <code>as</code> casting, which attempts to
preserve the <em>numeric</em> value, and not the bitwise value.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;
<span class="kw">let</span> <span class="ident">v</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">from_bits</span>(<span class="number">0x41480000</span>);
<span class="kw">let</span> <span class="ident">difference</span> <span class="op">=</span> (<span class="ident">v</span> <span class="op">-</span> <span class="number">12.5</span>).<span class="ident">abs</span>();
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">difference</span> <span class="op">&lt;=</span> <span class="number">1e-5</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0Alet%20v%20%3D%20f32%3A%3Afrom_bits(0x41480000)%3B%0Alet%20difference%20%3D%20(v%20-%2012.5).abs()%3B%0Aassert!(difference%20%3C%3D%201e-5)%3B%0A%7D">Run</a></pre>
</div></div><h3 id='impl-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#39-930' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.floor' class="method"><span id='floor.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.floor' class='fnname'>floor</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#53-71' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the largest integer less than or equal to a number.</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">3.99_f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="number">3.0_f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">floor</span>(), <span class="number">3.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">g</span>.<span class="ident">floor</span>(), <span class="number">3.0</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%203.99_f32%3B%0Alet%20g%20%3D%203.0_f32%3B%0A%0Aassert_eq!(f.floor()%2C%203.0)%3B%0Aassert_eq!(g.floor()%2C%203.0)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.ceil' class="method"><span id='ceil.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.ceil' class='fnname'>ceil</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#86-92' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the smallest integer greater than or equal to a number.</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">3.01_f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="number">4.0_f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">ceil</span>(), <span class="number">4.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">g</span>.<span class="ident">ceil</span>(), <span class="number">4.0</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%203.01_f32%3B%0Alet%20g%20%3D%204.0_f32%3B%0A%0Aassert_eq!(f.ceil()%2C%204.0)%3B%0Aassert_eq!(g.ceil()%2C%204.0)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.round' class="method"><span id='round.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.round' class='fnname'>round</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#108-110' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the nearest integer to a number. Round half-way cases away from
<code>0.0</code>.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">3.3_f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.3_f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">round</span>(), <span class="number">3.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">g</span>.<span class="ident">round</span>(), <span class="op">-</span><span class="number">3.0</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%203.3_f32%3B%0Alet%20g%20%3D%20-3.3_f32%3B%0A%0Aassert_eq!(f.round()%2C%203.0)%3B%0Aassert_eq!(g.round()%2C%20-3.0)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.trunc' class="method"><span id='trunc.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.trunc' class='fnname'>trunc</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#125-127' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the integer part of a number.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">3.3_f32</span>;
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.7_f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">trunc</span>(), <span class="number">3.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">g</span>.<span class="ident">trunc</span>(), <span class="op">-</span><span class="number">3.0</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Alet%20f%20%3D%203.3_f32%3B%0Alet%20g%20%3D%20-3.7_f32%3B%0A%0Aassert_eq!(f.trunc()%2C%203.0)%3B%0Aassert_eq!(g.trunc()%2C%20-3.0)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.fract' class="method"><span id='fract.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.fract' class='fnname'>fract</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#146' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the fractional part of a number.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">3.5_f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.5_f32</span>;
<span class="kw">let</span> <span class="ident">abs_difference_x</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">fract</span>() <span class="op">-</span> <span class="number">0.5</span>).<span class="ident">abs</span>();
<span class="kw">let</span> <span class="ident">abs_difference_y</span> <span class="op">=</span> (<span class="ident">y</span>.<span class="ident">fract</span>() <span class="op">-</span> (<span class="op">-</span><span class="number">0.5</span>)).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_x</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_y</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%203.5_f32%3B%0Alet%20y%20%3D%20-3.5_f32%3B%0Alet%20abs_difference_x%20%3D%20(x.fract()%20-%200.5).abs()%3B%0Alet%20abs_difference_y%20%3D%20(y.fract()%20-%20(-0.5)).abs()%3B%0A%0Aassert!(abs_difference_x%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(abs_difference_y%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.abs' class="method"><span id='abs.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.abs' class='fnname'>abs</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#169-171' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the absolute value of <code>self</code>. Returns <code>NAN</code> if the
number is <code>NAN</code>.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">3.5_f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.5_f32</span>;

<span class="kw">let</span> <span class="ident">abs_difference_x</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">abs</span>() <span class="op">-</span> <span class="ident">x</span>).<span class="ident">abs</span>();
<span class="kw">let</span> <span class="ident">abs_difference_y</span> <span class="op">=</span> (<span class="ident">y</span>.<span class="ident">abs</span>() <span class="op">-</span> (<span class="op">-</span><span class="ident">y</span>)).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_x</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_y</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">f32</span>::<span class="ident">NAN</span>.<span class="ident">abs</span>().<span class="ident">is_nan</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%203.5_f32%3B%0Alet%20y%20%3D%20-3.5_f32%3B%0A%0Alet%20abs_difference_x%20%3D%20(x.abs()%20-%20x).abs()%3B%0Alet%20abs_difference_y%20%3D%20(y.abs()%20-%20(-y)).abs()%3B%0A%0Aassert!(abs_difference_x%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(abs_difference_y%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%0Aassert!(f32%3A%3ANAN.abs().is_nan())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.signum' class="method"><span id='signum.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.signum' class='fnname'>signum</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#193-199' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a number that represents the sign of <code>self</code>.</p>
<ul>
<li><code>1.0</code> if the number is positive, <code>+0.0</code> or <code>INFINITY</code></li>
<li><code>-1.0</code> if the number is negative, <code>-0.0</code> or <code>NEG_INFINITY</code></li>
<li><code>NAN</code> if the number is <code>NAN</code></li>
</ul>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">3.5_f32</span>;

<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f</span>.<span class="ident">signum</span>(), <span class="number">1.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">f32</span>::<span class="ident">NEG_INFINITY</span>.<span class="ident">signum</span>(), <span class="op">-</span><span class="number">1.0</span>);

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">f32</span>::<span class="ident">NAN</span>.<span class="ident">signum</span>().<span class="ident">is_nan</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%203.5_f32%3B%0A%0Aassert_eq!(f.signum()%2C%201.0)%3B%0Aassert_eq!(f32%3A%3ANEG_INFINITY.signum()%2C%20-1.0)%3B%0A%0Aassert!(f32%3A%3ANAN.signum().is_nan())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.mul_add' class="method"><span id='mul_add.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.mul_add' class='fnname'>mul_add</a>(self, a: <a class="primitive" href="primitive.f32.html">f32</a>, b: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#223-225' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Fused multiply-add. Computes <code>(self * a) + b</code> with only one rounding
error, yielding a more accurate result than an unfused multiply-add.</p>
<p>Using <code>mul_add</code> can be more performant than an unfused multiply-add if
the target architecture has a dedicated <code>fma</code> CPU instruction.</p>
<h1 id="examples-9" class="section-header"><a href="#examples-9">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">10.0_f32</span>;
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">4.0_f32</span>;
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="number">60.0_f32</span>;

<span class="comment">// 100.0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">m</span>.<span class="ident">mul_add</span>(<span class="ident">x</span>, <span class="ident">b</span>) <span class="op">-</span> (<span class="ident">m</span><span class="kw-2">*</span><span class="ident">x</span> <span class="op">+</span> <span class="ident">b</span>)).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20m%20%3D%2010.0_f32%3B%0Alet%20x%20%3D%204.0_f32%3B%0Alet%20b%20%3D%2060.0_f32%3B%0A%0A%2F%2F%20100.0%0Alet%20abs_difference%20%3D%20(m.mul_add(x%2C%20b)%20-%20(m*x%20%2B%20b)).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.div_euc' class="method"><span id='div_euc.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.div_euc' class='fnname'>div_euc</a>(self, rhs: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#247-253' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>euclidean_division </code><a href="https://github.com/rust-lang/rust/issues/49048">#49048</a>)</div></div><div class='docblock'><p>Calculates Euclidean division, the matching method for <code>mod_euc</code>.</p>
<p>This computes the integer <code>n</code> such that
<code>self = n * rhs + self.mod_euc(rhs)</code>.
In other words, the result is <code>self / rhs</code> rounded to the integer <code>n</code>
such that <code>self &gt;= n * rhs</code>.</p>
<h1 id="examples-10" class="section-header"><a href="#examples-10">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="attribute">#![<span class="ident">feature</span>(<span class="ident">euclidean_division</span>)]</span>
<span class="kw">let</span> <span class="ident">a</span>: <span class="ident">f32</span> <span class="op">=</span> <span class="number">7.0</span>;
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="number">4.0</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">a</span>.<span class="ident">div_euc</span>(<span class="ident">b</span>), <span class="number">1.0</span>); <span class="comment">// 7.0 &gt; 4.0 * 1.0</span>
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="ident">a</span>).<span class="ident">div_euc</span>(<span class="ident">b</span>), <span class="op">-</span><span class="number">2.0</span>); <span class="comment">// -7.0 &gt;= 4.0 * -2.0</span>
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">a</span>.<span class="ident">div_euc</span>(<span class="op">-</span><span class="ident">b</span>), <span class="op">-</span><span class="number">1.0</span>); <span class="comment">// 7.0 &gt;= -4.0 * -1.0</span>
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="ident">a</span>).<span class="ident">div_euc</span>(<span class="op">-</span><span class="ident">b</span>), <span class="number">2.0</span>); <span class="comment">// -7.0 &gt;= -4.0 * 2.0</span><a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(euclidean_division)%5D%0Afn%20main()%20%7B%0Alet%20a%3A%20f32%20%3D%207.0%3B%0Alet%20b%20%3D%204.0%3B%0Aassert_eq!(a.div_euc(b)%2C%201.0)%3B%20%2F%2F%207.0%20%3E%204.0%20*%201.0%0Aassert_eq!((-a).div_euc(b)%2C%20-2.0)%3B%20%2F%2F%20-7.0%20%3E%3D%204.0%20*%20-2.0%0Aassert_eq!(a.div_euc(-b)%2C%20-1.0)%3B%20%2F%2F%207.0%20%3E%3D%20-4.0%20*%20-1.0%0Aassert_eq!((-a).div_euc(-b)%2C%202.0)%3B%20%2F%2F%20-7.0%20%3E%3D%20-4.0%20*%202.0%0A%7D&amp;version=nightly">Run</a></pre>
</div><h4 id='method.mod_euc' class="method"><span id='mod_euc.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.mod_euc' class='fnname'>mod_euc</a>(self, rhs: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#272-279' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>euclidean_division </code><a href="https://github.com/rust-lang/rust/issues/49048">#49048</a>)</div></div><div class='docblock'><p>Calculates the Euclidean modulo (self mod rhs), which is never negative.</p>
<p>In particular, the result <code>n</code> satisfies <code>0 &lt;= n &lt; rhs.abs()</code>.</p>
<h1 id="examples-11" class="section-header"><a href="#examples-11">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="attribute">#![<span class="ident">feature</span>(<span class="ident">euclidean_division</span>)]</span>
<span class="kw">let</span> <span class="ident">a</span>: <span class="ident">f32</span> <span class="op">=</span> <span class="number">7.0</span>;
<span class="kw">let</span> <span class="ident">b</span> <span class="op">=</span> <span class="number">4.0</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">a</span>.<span class="ident">mod_euc</span>(<span class="ident">b</span>), <span class="number">3.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="ident">a</span>).<span class="ident">mod_euc</span>(<span class="ident">b</span>), <span class="number">1.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">a</span>.<span class="ident">mod_euc</span>(<span class="op">-</span><span class="ident">b</span>), <span class="number">3.0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="ident">a</span>).<span class="ident">mod_euc</span>(<span class="op">-</span><span class="ident">b</span>), <span class="number">1.0</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0A%23!%5Bfeature(euclidean_division)%5D%0Afn%20main()%20%7B%0Alet%20a%3A%20f32%20%3D%207.0%3B%0Alet%20b%20%3D%204.0%3B%0Aassert_eq!(a.mod_euc(b)%2C%203.0)%3B%0Aassert_eq!((-a).mod_euc(b)%2C%201.0)%3B%0Aassert_eq!(a.mod_euc(-b)%2C%203.0)%3B%0Aassert_eq!((-a).mod_euc(-b)%2C%201.0)%3B%0A%7D&amp;version=nightly">Run</a></pre>
</div><h4 id='method.powi' class="method"><span id='powi.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.powi' class='fnname'>powi</a>(self, n: <a class="primitive" href="primitive.i32.html">i32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#298-300' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Raises a number to an integer power.</p>
<p>Using this function is generally faster than using <code>powf</code></p>
<h1 id="examples-12" class="section-header"><a href="#examples-12">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">2.0_f32</span>;
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">powi</span>(<span class="number">2</span>) <span class="op">-</span> <span class="ident">x</span><span class="kw-2">*</span><span class="ident">x</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%202.0_f32%3B%0Alet%20abs_difference%20%3D%20(x.powi(2)%20-%20x*x).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.powf' class="method"><span id='powf.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.powf' class='fnname'>powf</a>(self, n: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#316-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Raises a number to a floating point power.</p>
<h1 id="examples-13" class="section-header"><a href="#examples-13">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">2.0_f32</span>;
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">powf</span>(<span class="number">2.0</span>) <span class="op">-</span> <span class="ident">x</span><span class="kw-2">*</span><span class="ident">x</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%202.0_f32%3B%0Alet%20abs_difference%20%3D%20(x.powf(2.0)%20-%20x*x).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.sqrt' class="method"><span id='sqrt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sqrt' class='fnname'>sqrt</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#343-349' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Takes the square root of a number.</p>
<p>Returns NaN if <code>self</code> is a negative number.</p>
<h1 id="examples-14" class="section-header"><a href="#examples-14">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">positive</span> <span class="op">=</span> <span class="number">4.0_f32</span>;
<span class="kw">let</span> <span class="ident">negative</span> <span class="op">=</span> <span class="op">-</span><span class="number">4.0_f32</span>;

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">positive</span>.<span class="ident">sqrt</span>() <span class="op">-</span> <span class="number">2.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">negative</span>.<span class="ident">sqrt</span>().<span class="ident">is_nan</span>());<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20positive%20%3D%204.0_f32%3B%0Alet%20negative%20%3D%20-4.0_f32%3B%0A%0Alet%20abs_difference%20%3D%20(positive.sqrt()%20-%202.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(negative.sqrt().is_nan())%3B%0A%7D">Run</a></pre>
</div><h4 id='method.exp' class="method"><span id='exp.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.exp' class='fnname'>exp</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#369-375' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>e^(self)</code>, (the exponential function).</p>
<h1 id="examples-15" class="section-header"><a href="#examples-15">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">one</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="comment">// e^1</span>
<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">one</span>.<span class="ident">exp</span>();

<span class="comment">// ln(e) - 1 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">e</span>.<span class="ident">ln</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20one%20%3D%201.0f32%3B%0A%2F%2F%20e%5E1%0Alet%20e%20%3D%20one.exp()%3B%0A%0A%2F%2F%20ln(e)%20-%201%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(e.ln()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.exp2' class="method"><span id='exp2.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.exp2' class='fnname'>exp2</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#393-395' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>2^(self)</code>.</p>
<h1 id="examples-16" class="section-header"><a href="#examples-16">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">2.0f32</span>;

<span class="comment">// 2^2 - 4 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="ident">exp2</span>() <span class="op">-</span> <span class="number">4.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%202.0f32%3B%0A%0A%2F%2F%202%5E2%20-%204%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(f.exp2()%20-%204.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.ln' class="method"><span id='ln.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.ln' class='fnname'>ln</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#415-421' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the natural logarithm of the number.</p>
<h1 id="examples-17" class="section-header"><a href="#examples-17">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">one</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="comment">// e^1</span>
<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">one</span>.<span class="ident">exp</span>();

<span class="comment">// ln(e) - 1 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">e</span>.<span class="ident">ln</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20one%20%3D%201.0f32%3B%0A%2F%2F%20e%5E1%0Alet%20e%20%3D%20one.exp()%3B%0A%0A%2F%2F%20ln(e)%20-%201%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(e.ln()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.log' class="method"><span id='log.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.log' class='fnname'>log</a>(self, base: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#443' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the logarithm of the number with respect to an arbitrary base.</p>
<p>The result may not be correctly rounded owing to implementation details;
<code>self.log2()</code> can produce more accurate results for base 2, and
<code>self.log10()</code> can produce more accurate results for base 10.</p>
<h1 id="examples-18" class="section-header"><a href="#examples-18">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">five</span> <span class="op">=</span> <span class="number">5.0f32</span>;

<span class="comment">// log5(5) - 1 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">five</span>.<span class="ident">log</span>(<span class="number">5.0</span>) <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20five%20%3D%205.0f32%3B%0A%0A%2F%2F%20log5(5)%20-%201%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(five.log(5.0)%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.log2' class="method"><span id='log2.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.log2' class='fnname'>log2</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#461-466' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the base 2 logarithm of the number.</p>
<h1 id="examples-19" class="section-header"><a href="#examples-19">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">two</span> <span class="op">=</span> <span class="number">2.0f32</span>;

<span class="comment">// log2(2) - 1 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">two</span>.<span class="ident">log2</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20two%20%3D%202.0f32%3B%0A%0A%2F%2F%20log2(2)%20-%201%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(two.log2()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.log10' class="method"><span id='log10.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.log10' class='fnname'>log10</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#484-490' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the base 10 logarithm of the number.</p>
<h1 id="examples-20" class="section-header"><a href="#examples-20">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">ten</span> <span class="op">=</span> <span class="number">10.0f32</span>;

<span class="comment">// log10(10) - 1 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">ten</span>.<span class="ident">log10</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20ten%20%3D%2010.0f32%3B%0A%0A%2F%2F%20log10(10)%20-%201%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(ten.log10()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.abs_sub' class="method"><span id='abs_sub.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.abs_sub' class='fnname'>abs_sub</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#520-522' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab deprecated'>Deprecated since 1.10.0<p>: you probably meant <code>(self - other).abs()</code>: this operation is <code>(self - other).max(0.0)</code> (also known as <code>fdimf</code> in C). If you truly need the positive difference, consider using that expression or the C function <code>fdimf</code>, depending on how you wish to handle NaN (please consider filing an issue describing your use-case too).</p>
</div></div><div class='docblock'><p>The positive difference of two numbers.</p>
<ul>
<li>If <code>self &lt;= other</code>: <code>0:0</code></li>
<li>Else: <code>self - other</code></li>
</ul>
<h1 id="examples-21" class="section-header"><a href="#examples-21">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">3.0f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.0f32</span>;

<span class="kw">let</span> <span class="ident">abs_difference_x</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">abs_sub</span>(<span class="number">1.0</span>) <span class="op">-</span> <span class="number">2.0</span>).<span class="ident">abs</span>();
<span class="kw">let</span> <span class="ident">abs_difference_y</span> <span class="op">=</span> (<span class="ident">y</span>.<span class="ident">abs_sub</span>(<span class="number">1.0</span>) <span class="op">-</span> <span class="number">0.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_x</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_y</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%203.0f32%3B%0Alet%20y%20%3D%20-3.0f32%3B%0A%0Alet%20abs_difference_x%20%3D%20(x.abs_sub(1.0)%20-%202.0).abs()%3B%0Alet%20abs_difference_y%20%3D%20(y.abs_sub(1.0)%20-%200.0).abs()%3B%0A%0Aassert!(abs_difference_x%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(abs_difference_y%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.cbrt' class="method"><span id='cbrt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cbrt' class='fnname'>cbrt</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#540-542' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Takes the cubic root of a number.</p>
<h1 id="examples-22" class="section-header"><a href="#examples-22">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">8.0f32</span>;

<span class="comment">// x^(1/3) - 2 == 0</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">cbrt</span>() <span class="op">-</span> <span class="number">2.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%208.0f32%3B%0A%0A%2F%2F%20x%5E(1%2F3)%20-%202%20%3D%3D%200%0Alet%20abs_difference%20%3D%20(x.cbrt()%20-%202.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.hypot' class="method"><span id='hypot.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.hypot' class='fnname'>hypot</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#562-564' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the length of the hypotenuse of a right-angle triangle given
legs of length <code>x</code> and <code>y</code>.</p>
<h1 id="examples-23" class="section-header"><a href="#examples-23">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">2.0f32</span>;
<span class="kw">let</span> <span class="ident">y</span> <span class="op">=</span> <span class="number">3.0f32</span>;

<span class="comment">// sqrt(x^2 + y^2)</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">hypot</span>(<span class="ident">y</span>) <span class="op">-</span> (<span class="ident">x</span>.<span class="ident">powi</span>(<span class="number">2</span>) <span class="op">+</span> <span class="ident">y</span>.<span class="ident">powi</span>(<span class="number">2</span>)).<span class="ident">sqrt</span>()).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%202.0f32%3B%0Alet%20y%20%3D%203.0f32%3B%0A%0A%2F%2F%20sqrt(x%5E2%20%2B%20y%5E2)%0Alet%20abs_difference%20%3D%20(x.hypot(y)%20-%20(x.powi(2)%20%2B%20y.powi(2)).sqrt()).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.sin' class="method"><span id='sin.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sin' class='fnname'>sin</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#581-587' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the sine of a number (in radians).</p>
<h1 id="examples-24" class="section-header"><a href="#examples-24">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span><span class="op">/</span><span class="number">2.0</span>;

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">sin</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%20f32%3A%3Aconsts%3A%3API%2F2.0%3B%0A%0Alet%20abs_difference%20%3D%20(x.sin()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.cos' class="method"><span id='cos.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cos' class='fnname'>cos</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#604-610' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the cosine of a number (in radians).</p>
<h1 id="examples-25" class="section-header"><a href="#examples-25">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">2.0</span><span class="kw-2">*</span><span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span>;

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">cos</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%202.0*f32%3A%3Aconsts%3A%3API%3B%0A%0Alet%20abs_difference%20%3D%20(x.cos()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.tan' class="method"><span id='tan.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.tan' class='fnname'>tan</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#626-628' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the tangent of a number (in radians).</p>
<h1 id="examples-26" class="section-header"><a href="#examples-26">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span> <span class="op">/</span> <span class="number">4.0</span>;
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">tan</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%20f32%3A%3Aconsts%3A%3API%20%2F%204.0%3B%0Alet%20abs_difference%20%3D%20(x.tan()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.asin' class="method"><span id='asin.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.asin' class='fnname'>asin</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#648-650' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the arcsine of a number. Return value is in radians in
the range [-pi/2, pi/2] or NaN if the number is outside the range
[-1, 1].</p>
<h1 id="examples-27" class="section-header"><a href="#examples-27">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span> <span class="op">/</span> <span class="number">2.0</span>;

<span class="comment">// asin(sin(pi/2))</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="ident">sin</span>().<span class="ident">asin</span>() <span class="op">-</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span> <span class="op">/</span> <span class="number">2.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%20f32%3A%3Aconsts%3A%3API%20%2F%202.0%3B%0A%0A%2F%2F%20asin(sin(pi%2F2))%0Alet%20abs_difference%20%3D%20(f.sin().asin()%20-%20f32%3A%3Aconsts%3A%3API%20%2F%202.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.acos' class="method"><span id='acos.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.acos' class='fnname'>acos</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#670-672' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the arccosine of a number. Return value is in radians in
the range [0, pi] or NaN if the number is outside the range
[-1, 1].</p>
<h1 id="examples-28" class="section-header"><a href="#examples-28">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span> <span class="op">/</span> <span class="number">4.0</span>;

<span class="comment">// acos(cos(pi/4))</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="ident">cos</span>().<span class="ident">acos</span>() <span class="op">-</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span> <span class="op">/</span> <span class="number">4.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%20f32%3A%3Aconsts%3A%3API%20%2F%204.0%3B%0A%0A%2F%2F%20acos(cos(pi%2F4))%0Alet%20abs_difference%20%3D%20(f.cos().acos()%20-%20f32%3A%3Aconsts%3A%3API%20%2F%204.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.atan' class="method"><span id='atan.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.atan' class='fnname'>atan</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#691-693' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the arctangent of a number. Return value is in radians in the
range [-pi/2, pi/2];</p>
<h1 id="examples-29" class="section-header"><a href="#examples-29">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="number">1.0f32</span>;

<span class="comment">// atan(tan(1))</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="ident">tan</span>().<span class="ident">atan</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20f%20%3D%201.0f32%3B%0A%0A%2F%2F%20atan(tan(1))%0Alet%20abs_difference%20%3D%20(f.tan().atan()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.atan2' class="method"><span id='atan2.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.atan2' class='fnname'>atan2</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#726-728' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Computes the four quadrant arctangent of <code>self</code> (<code>y</code>) and <code>other</code> (<code>x</code>) in radians.</p>
<ul>
<li><code>x = 0</code>, <code>y = 0</code>: <code>0</code></li>
<li><code>x &gt;= 0</code>: <code>arctan(y/x)</code> -&gt; <code>[-pi/2, pi/2]</code></li>
<li><code>y &gt;= 0</code>: <code>arctan(y/x) + pi</code> -&gt; <code>(pi/2, pi]</code></li>
<li><code>y &lt; 0</code>: <code>arctan(y/x) - pi</code> -&gt; <code>(-pi, -pi/2)</code></li>
</ul>
<h1 id="examples-30" class="section-header"><a href="#examples-30">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">pi</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span>;
<span class="comment">// Positive angles measured counter-clockwise</span>
<span class="comment">// from positive x axis</span>
<span class="comment">// -pi/4 radians (45 deg clockwise)</span>
<span class="kw">let</span> <span class="ident">x1</span> <span class="op">=</span> <span class="number">3.0f32</span>;
<span class="kw">let</span> <span class="ident">y1</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.0f32</span>;

<span class="comment">// 3pi/4 radians (135 deg counter-clockwise)</span>
<span class="kw">let</span> <span class="ident">x2</span> <span class="op">=</span> <span class="op">-</span><span class="number">3.0f32</span>;
<span class="kw">let</span> <span class="ident">y2</span> <span class="op">=</span> <span class="number">3.0f32</span>;

<span class="kw">let</span> <span class="ident">abs_difference_1</span> <span class="op">=</span> (<span class="ident">y1</span>.<span class="ident">atan2</span>(<span class="ident">x1</span>) <span class="op">-</span> (<span class="op">-</span><span class="ident">pi</span><span class="op">/</span><span class="number">4.0</span>)).<span class="ident">abs</span>();
<span class="kw">let</span> <span class="ident">abs_difference_2</span> <span class="op">=</span> (<span class="ident">y2</span>.<span class="ident">atan2</span>(<span class="ident">x2</span>) <span class="op">-</span> <span class="number">3.0</span><span class="kw-2">*</span><span class="ident">pi</span><span class="op">/</span><span class="number">4.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_1</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_2</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20pi%20%3D%20f32%3A%3Aconsts%3A%3API%3B%0A%2F%2F%20Positive%20angles%20measured%20counter-clockwise%0A%2F%2F%20from%20positive%20x%20axis%0A%2F%2F%20-pi%2F4%20radians%20(45%20deg%20clockwise)%0Alet%20x1%20%3D%203.0f32%3B%0Alet%20y1%20%3D%20-3.0f32%3B%0A%0A%2F%2F%203pi%2F4%20radians%20(135%20deg%20counter-clockwise)%0Alet%20x2%20%3D%20-3.0f32%3B%0Alet%20y2%20%3D%203.0f32%3B%0A%0Alet%20abs_difference_1%20%3D%20(y1.atan2(x1)%20-%20(-pi%2F4.0)).abs()%3B%0Alet%20abs_difference_2%20%3D%20(y2.atan2(x2)%20-%203.0*pi%2F4.0).abs()%3B%0A%0Aassert!(abs_difference_1%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(abs_difference_2%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.sin_cos' class="method"><span id='sin_cos.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sin_cos' class='fnname'>sin_cos</a>(self) -&gt; <a class="primitive" href="primitive.tuple.html">(</a><a class="primitive" href="primitive.f32.html">f32</a>, <a class="primitive" href="primitive.f32.html">f32</a><a class="primitive" href="primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#749-751' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneously computes the sine and cosine of the number, <code>x</code>. Returns
<code>(sin(x), cos(x))</code>.</p>
<h1 id="examples-31" class="section-header"><a href="#examples-31">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">PI</span><span class="op">/</span><span class="number">4.0</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">sin_cos</span>();

<span class="kw">let</span> <span class="ident">abs_difference_0</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="number">0</span> <span class="op">-</span> <span class="ident">x</span>.<span class="ident">sin</span>()).<span class="ident">abs</span>();
<span class="kw">let</span> <span class="ident">abs_difference_1</span> <span class="op">=</span> (<span class="ident">f</span>.<span class="number">1</span> <span class="op">-</span> <span class="ident">x</span>.<span class="ident">cos</span>()).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_0</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference_1</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%20f32%3A%3Aconsts%3A%3API%2F4.0%3B%0Alet%20f%20%3D%20x.sin_cos()%3B%0A%0Alet%20abs_difference_0%20%3D%20(f.0%20-%20x.sin()).abs()%3B%0Alet%20abs_difference_1%20%3D%20(f.1%20-%20x.cos()).abs()%3B%0A%0Aassert!(abs_difference_0%20%3C%3D%20f32%3A%3AEPSILON)%3B%0Aassert!(abs_difference_1%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.exp_m1' class="method"><span id='exp_m1.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.exp_m1' class='fnname'>exp_m1</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#770-772' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>e^(self) - 1</code> in a way that is accurate even if the
number is close to zero.</p>
<h1 id="examples-32" class="section-header"><a href="#examples-32">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">6.0f32</span>;

<span class="comment">// e^(ln(6)) - 1</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">ln</span>().<span class="ident">exp_m1</span>() <span class="op">-</span> <span class="number">5.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%206.0f32%3B%0A%0A%2F%2F%20e%5E(ln(6))%20-%201%0Alet%20abs_difference%20%3D%20(x.ln().exp_m1()%20-%205.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.ln_1p' class="method"><span id='ln_1p.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.ln_1p' class='fnname'>ln_1p</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#791-793' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>ln(1+n)</code> (natural logarithm) more accurately than if
the operations were performed separately.</p>
<h1 id="examples-33" class="section-header"><a href="#examples-33">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">E</span> <span class="op">-</span> <span class="number">1.0</span>;

<span class="comment">// ln(1 + (e - 1)) == ln(e) == 1</span>
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">x</span>.<span class="ident">ln_1p</span>() <span class="op">-</span> <span class="number">1.0</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%20f32%3A%3Aconsts%3A%3AE%20-%201.0%3B%0A%0A%2F%2F%20ln(1%20%2B%20(e%20-%201))%20%3D%3D%20ln(e)%20%3D%3D%201%0Alet%20abs_difference%20%3D%20(x.ln_1p()%20-%201.0).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.sinh' class="method"><span id='sinh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.sinh' class='fnname'>sinh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#814-816' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Hyperbolic sine function.</p>
<h1 id="examples-34" class="section-header"><a href="#examples-34">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">E</span>;
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">sinh</span>();
<span class="comment">// Solving sinh() at 1 gives `(e^2-1)/(2e)`</span>
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> (<span class="ident">e</span><span class="kw-2">*</span><span class="ident">e</span> <span class="op">-</span> <span class="number">1.0</span>)<span class="op">/</span>(<span class="number">2.0</span><span class="kw-2">*</span><span class="ident">e</span>);
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">g</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20e%20%3D%20f32%3A%3Aconsts%3A%3AE%3B%0Alet%20x%20%3D%201.0f32%3B%0A%0Alet%20f%20%3D%20x.sinh()%3B%0A%2F%2F%20Solving%20sinh()%20at%201%20gives%20%60(e%5E2-1)%2F(2e)%60%0Alet%20g%20%3D%20(e*e%20-%201.0)%2F(2.0*e)%3B%0Alet%20abs_difference%20%3D%20(f%20-%20g).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.cosh' class="method"><span id='cosh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.cosh' class='fnname'>cosh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#837-839' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Hyperbolic cosine function.</p>
<h1 id="examples-35" class="section-header"><a href="#examples-35">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">E</span>;
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">cosh</span>();
<span class="comment">// Solving cosh() at 1 gives this result</span>
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> (<span class="ident">e</span><span class="kw-2">*</span><span class="ident">e</span> <span class="op">+</span> <span class="number">1.0</span>)<span class="op">/</span>(<span class="number">2.0</span><span class="kw-2">*</span><span class="ident">e</span>);
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">g</span>).<span class="ident">abs</span>();

<span class="comment">// Same result</span>
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20e%20%3D%20f32%3A%3Aconsts%3A%3AE%3B%0Alet%20x%20%3D%201.0f32%3B%0Alet%20f%20%3D%20x.cosh()%3B%0A%2F%2F%20Solving%20cosh()%20at%201%20gives%20this%20result%0Alet%20g%20%3D%20(e*e%20%2B%201.0)%2F(2.0*e)%3B%0Alet%20abs_difference%20%3D%20(f%20-%20g).abs()%3B%0A%0A%2F%2F%20Same%20result%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.tanh' class="method"><span id='tanh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.tanh' class='fnname'>tanh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#860-862' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Hyperbolic tangent function.</p>
<h1 id="examples-36" class="section-header"><a href="#examples-36">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">E</span>;
<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;

<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">tanh</span>();
<span class="comment">// Solving tanh() at 1 gives `(1 - e^(-2))/(1 + e^(-2))`</span>
<span class="kw">let</span> <span class="ident">g</span> <span class="op">=</span> (<span class="number">1.0</span> <span class="op">-</span> <span class="ident">e</span>.<span class="ident">powi</span>(<span class="op">-</span><span class="number">2</span>))<span class="op">/</span>(<span class="number">1.0</span> <span class="op">+</span> <span class="ident">e</span>.<span class="ident">powi</span>(<span class="op">-</span><span class="number">2</span>));
<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">g</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20e%20%3D%20f32%3A%3Aconsts%3A%3AE%3B%0Alet%20x%20%3D%201.0f32%3B%0A%0Alet%20f%20%3D%20x.tanh()%3B%0A%2F%2F%20Solving%20tanh()%20at%201%20gives%20%60(1%20-%20e%5E(-2))%2F(1%20%2B%20e%5E(-2))%60%0Alet%20g%20%3D%20(1.0%20-%20e.powi(-2))%2F(1.0%20%2B%20e.powi(-2))%3B%0Alet%20abs_difference%20%3D%20(f%20-%20g).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.asinh' class="method"><span id='asinh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.asinh' class='fnname'>asinh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#880-886' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Inverse hyperbolic sine function.</p>
<h1 id="examples-37" class="section-header"><a href="#examples-37">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">sinh</span>().<span class="ident">asinh</span>();

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">x</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%201.0f32%3B%0Alet%20f%20%3D%20x.sinh().asinh()%3B%0A%0Alet%20abs_difference%20%3D%20(f%20-%20x).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.acosh' class="method"><span id='acosh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.acosh' class='fnname'>acosh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#904-909' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Inverse hyperbolic cosine function.</p>
<h1 id="examples-38" class="section-header"><a href="#examples-38">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">x</span> <span class="op">=</span> <span class="number">1.0f32</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">x</span>.<span class="ident">cosh</span>().<span class="ident">acosh</span>();

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">x</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="ident">f32</span>::<span class="ident">EPSILON</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20x%20%3D%201.0f32%3B%0Alet%20f%20%3D%20x.cosh().acosh()%3B%0A%0Alet%20abs_difference%20%3D%20(f%20-%20x).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%20f32%3A%3AEPSILON)%3B%0A%7D">Run</a></pre>
</div><h4 id='method.atanh' class="method"><span id='atanh.v' class='invisible'><table class='table-display'><tbody><tr><td><code>pub fn <a href='#method.atanh' class='fnname'>atanh</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/std/f32.rs.html#927-929' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Inverse hyperbolic tangent function.</p>
<h1 id="examples-39" class="section-header"><a href="#examples-39">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">f32</span>;

<span class="kw">let</span> <span class="ident">e</span> <span class="op">=</span> <span class="ident">f32</span>::<span class="ident">consts</span>::<span class="ident">E</span>;
<span class="kw">let</span> <span class="ident">f</span> <span class="op">=</span> <span class="ident">e</span>.<span class="ident">tanh</span>().<span class="ident">atanh</span>();

<span class="kw">let</span> <span class="ident">abs_difference</span> <span class="op">=</span> (<span class="ident">f</span> <span class="op">-</span> <span class="ident">e</span>).<span class="ident">abs</span>();

<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">abs_difference</span> <span class="op">&lt;=</span> <span class="number">1e-5</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Af32%3B%0A%0Alet%20e%20%3D%20f32%3A%3Aconsts%3A%3AE%3B%0Alet%20f%20%3D%20e.tanh().atanh()%3B%0A%0Alet%20abs_difference%20%3D%20(f%20-%20e).abs()%3B%0A%0Aassert!(abs_difference%20%3C%3D%201e-5)%3B%0A%7D">Run</a></pre>
</div></div>
                <h2 id='implementations' class='small-section-header'>
                  Trait Implementations<a href='#implementations' class='anchor'></a>
                </h2>
                <div id='implementations-list'><h3 id='impl-Mul%3Cf32x2%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32x2%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#43-49' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output' class="type"><span id='Output.t' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul' class="method"><span id='mul.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#46-48' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3Cf32x8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32x8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#43-49' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><span id='Output.t-1' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-1' class="method"><span id='mul.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#46-48' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#323-329' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><span id='Output.t-2' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-2' class="method"><span id='mul.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#328' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3Cf32x16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32x16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#43-49' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><span id='Output.t-3' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-3' class="method"><span id='mul.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#46-48' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, 'b&gt; <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'b <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#61-68' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><span id='Output.t-4' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-4' class="method"><span id='mul.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#65-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3Cf32x4%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32x4%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#43-49' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-5' class="type"><span id='Output.t-5' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-5' class="method"><span id='mul.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#46-48' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3Cf32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3Cf32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#41-48' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-6' class="type"><span id='Output.t-6' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-6' class="method"><span id='mul.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#45-47' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Mul%3C%26%27a%20f32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Mul%3C%26%27a%20f32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#51-58' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-7' class="type"><span id='Output.t-7' class='invisible'><code>type <a href='../std/ops/trait.Mul.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>*</code> operator.</p>
</div><h4 id='method.mul-7' class="method"><span id='mul.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Mul.html#tymethod.mul' class='fnname'>mul</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Mul.html" title="trait std::ops::Mul">Mul</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Mul.html#associatedtype.Output" title="type std::ops::Mul::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#55-57' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32x16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32x16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#73-79' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-8' class="type"><span id='Output.t-8' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem' class="method"><span id='rem.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#76-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#41-48' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-9' class="type"><span id='Output.t-9' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-1' class="method"><span id='rem.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#45-47' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#551-556' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-10' class="type"><span id='Output.t-10' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-2' class="method"><span id='rem.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#555' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#51-58' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-11' class="type"><span id='Output.t-11' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-3' class="method"><span id='rem.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#55-57' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32x4%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32x4%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#73-79' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-12' class="type"><span id='Output.t-12' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-4' class="method"><span id='rem.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#76-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32x8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32x8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#73-79' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-13' class="type"><span id='Output.t-13' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-5' class="method"><span id='rem.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#76-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3C%26%27a%20f32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, 'b&gt; <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'b <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3C%26%27a%20f32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#61-68' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-14' class="type"><span id='Output.t-14' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-6' class="method"><span id='rem.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Rem.html#associatedtype.Output" title="type std::ops::Rem::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#65-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Rem%3Cf32x2%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Rem.html" title="trait std::ops::Rem">Rem</a>&lt;<a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Rem%3Cf32x2%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#73-79' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-15' class="type"><span id='Output.t-15' class='invisible'><code>type <a href='../std/ops/trait.Rem.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>%</code> operator.</p>
</div><h4 id='method.rem-7' class="method"><span id='rem.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Rem.html#tymethod.rem' class='fnname'>rem</a>(self, other: <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#76-78' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%</code> operation.</p>
</div></div><h3 id='impl-Display' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/fmt/trait.Display.html" title="trait std::fmt::Display">Display</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Display' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#134-138' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt' class="method"><span id='fmt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/fmt/trait.Display.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="../std/fmt/struct.Formatter.html" title="struct std::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="../std/result/enum.Result.html" title="enum std::result::Result">Result</a>&lt;<a class="primitive" href="primitive.unit.html">()</a>, <a class="struct" href="../std/fmt/struct.Error.html" title="struct std::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#135-137' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="../std/fmt/trait.Display.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-PartialEq%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/cmp/trait.PartialEq.html" title="trait std::cmp::PartialEq">PartialEq</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-PartialEq%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#777-782' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.eq' class="method"><span id='eq.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialEq.html#tymethod.eq' class='fnname'>eq</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#779' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used by <code>==</code>. <a href="../std/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id='method.ne' class="method"><span id='ne.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialEq.html#method.ne' class='fnname'>ne</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#781' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id='impl-PartialOrd%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/cmp/trait.PartialOrd.html" title="trait std::cmp::PartialOrd">PartialOrd</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-PartialOrd%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#810-828' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.partial_cmp' class="method"><span id='partial_cmp.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialOrd.html#tymethod.partial_cmp' class='fnname'>partial_cmp</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="enum" href="../std/option/enum.Option.html" title="enum std::option::Option">Option</a>&lt;<a class="enum" href="../std/cmp/enum.Ordering.html" title="enum std::cmp::Ordering">Ordering</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#812-819' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method returns an ordering between <code>self</code> and <code>other</code> values if one exists. <a href="../std/cmp/trait.PartialOrd.html#tymethod.partial_cmp">Read more</a></p>
</div><h4 id='method.lt' class="method"><span id='lt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialOrd.html#method.lt' class='fnname'>lt</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#821' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests less than (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;</code> operator. <a href="../std/cmp/trait.PartialOrd.html#method.lt">Read more</a></p>
</div><h4 id='method.le' class="method"><span id='le.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialOrd.html#method.le' class='fnname'>le</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#823' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests less than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&lt;=</code> operator. <a href="../std/cmp/trait.PartialOrd.html#method.le">Read more</a></p>
</div><h4 id='method.ge' class="method"><span id='ge.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialOrd.html#method.ge' class='fnname'>ge</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#825' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests greater than or equal to (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;=</code> operator. <a href="../std/cmp/trait.PartialOrd.html#method.ge">Read more</a></p>
</div><h4 id='method.gt' class="method"><span id='gt.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/cmp/trait.PartialOrd.html#method.gt' class='fnname'>gt</a>(&amp;self, other: &amp;<a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/cmp.rs.html#827' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>This method tests greater than (for <code>self</code> and <code>other</code>) and is used by the <code>&gt;</code> operator. <a href="../std/cmp/trait.PartialOrd.html#method.gt">Read more</a></p>
</div></div><h3 id='impl-Sum%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/iter/trait.Sum.html" title="trait std::iter::Sum">Sum</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sum%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.12.0'>1.12.0</div><a class='srclink' href='../src/core/iter/traits.rs.html#828-832' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.sum' class="method"><span id='sum.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/iter/trait.Sum.html#tymethod.sum' class='fnname'>sum</a>&lt;I&gt;(iter: I) -&gt; <a class="primitive" href="primitive.f32.html">f32</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../std/iter/trait.Iterator.html" title="trait std::iter::Iterator">Iterator</a>&lt;Item = &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/iter/traits.rs.html#829-831' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method which takes an iterator and generates <code>Self</code> from the elements by &quot;summing up&quot; the items. <a href="../std/iter/trait.Sum.html#tymethod.sum">Read more</a></p>
</div></div><h3 id='impl-Sum%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/iter/trait.Sum.html" title="trait std::iter::Sum">Sum</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sum%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.12.0'>1.12.0</div><a class='srclink' href='../src/core/iter/traits.rs.html#814-818' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.sum-1' class="method"><span id='sum.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/iter/trait.Sum.html#tymethod.sum' class='fnname'>sum</a>&lt;I&gt;(iter: I) -&gt; <a class="primitive" href="primitive.f32.html">f32</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../std/iter/trait.Iterator.html" title="trait std::iter::Iterator">Iterator</a>&lt;Item = <a class="primitive" href="primitive.f32.html">f32</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/iter/traits.rs.html#815-817' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method which takes an iterator and generates <code>Self</code> from the elements by &quot;summing up&quot; the items. <a href="../std/iter/trait.Sum.html#tymethod.sum">Read more</a></p>
</div></div><h3 id='impl-MulAssign%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.MulAssign.html" title="trait std::ops::MulAssign">MulAssign</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-MulAssign%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.22.0'>1.22.0</div><a class='srclink' href='../src/core/internal_macros.rs.html#81-86' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.mul_assign' class="method"><span id='mul_assign.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.MulAssign.html#tymethod.mul_assign' class='fnname'>mul_assign</a>(&amp;mut self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#83-85' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*=</code> operation.</p>
</div></div><h3 id='impl-MulAssign%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.MulAssign.html" title="trait std::ops::MulAssign">MulAssign</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-MulAssign%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.8.0'>1.8.0</div><a class='srclink' href='../src/core/ops/arith.rs.html#793-797' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.mul_assign-1' class="method"><span id='mul_assign.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.MulAssign.html#tymethod.mul_assign' class='fnname'>mul_assign</a>(&amp;mut self, other: <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#796' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>*=</code> operation.</p>
</div></div><h3 id='impl-Debug' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/fmt/trait.Debug.html" title="trait std::fmt::Debug">Debug</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Debug' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#127-131' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-1' class="method"><span id='fmt.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/fmt/trait.Debug.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="../std/fmt/struct.Formatter.html" title="struct std::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="../std/result/enum.Result.html" title="enum std::result::Result">Result</a>&lt;<a class="primitive" href="primitive.unit.html">()</a>, <a class="struct" href="../std/fmt/struct.Error.html" title="struct std::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#128-130' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter. <a href="../std/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id='impl-Sub%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#203-209' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-16' class="type"><span id='Output.t-16' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub' class="method"><span id='sub.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#208' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3Cf32x16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32x16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#28-34' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-17' class="type"><span id='Output.t-17' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-1' class="method"><span id='sub.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#31-33' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3Cf32x8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32x8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#28-34' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-18' class="type"><span id='Output.t-18' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-2' class="method"><span id='sub.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#31-33' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3Cf32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#41-48' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-19' class="type"><span id='Output.t-19' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-3' class="method"><span id='sub.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#45-47' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3Cf32x4%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32x4%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#28-34' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-20' class="type"><span id='Output.t-20' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-4' class="method"><span id='sub.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#31-33' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#51-58' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-21' class="type"><span id='Output.t-21' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-5' class="method"><span id='sub.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#55-57' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3Cf32x2%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3Cf32x2%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#28-34' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-22' class="type"><span id='Output.t-22' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-6' class="method"><span id='sub.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#31-33' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Sub%3C%26%27a%20f32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, 'b&gt; <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'b <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sub%3C%26%27a%20f32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#61-68' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-23' class="type"><span id='Output.t-23' class='invisible'><code>type <a href='../std/ops/trait.Sub.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.sub-7' class="method"><span id='sub.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Sub.html#tymethod.sub' class='fnname'>sub</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Sub.html" title="trait std::ops::Sub">Sub</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Sub.html#associatedtype.Output" title="type std::ops::Sub::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#65-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-</code> operation.</p>
</div></div><h3 id='impl-Neg' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Neg' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#619-625' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-24' class="type"><span id='Output.t-24' class='invisible'><code>type <a href='../std/ops/trait.Neg.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.neg' class="method"><span id='neg.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#624' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the unary <code>-</code> operation.</p>
</div></div><h3 id='impl-Neg-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a> for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Neg-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#21-28' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-25' class="type"><span id='Output.t-25' class='invisible'><code>type <a href='../std/ops/trait.Neg.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div><h4 id='method.neg-1' class="method"><span id='neg.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Neg.html#tymethod.neg' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#25-27' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the unary <code>-</code> operation.</p>
</div></div><h3 id='impl-SubAssign%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.SubAssign.html" title="trait std::ops::SubAssign">SubAssign</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-SubAssign%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.8.0'>1.8.0</div><a class='srclink' href='../src/core/ops/arith.rs.html#746-750' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.sub_assign' class="method"><span id='sub_assign.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.SubAssign.html#tymethod.sub_assign' class='fnname'>sub_assign</a>(&amp;mut self, other: <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#749' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-=</code> operation.</p>
</div></div><h3 id='impl-SubAssign%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.SubAssign.html" title="trait std::ops::SubAssign">SubAssign</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-SubAssign%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.22.0'>1.22.0</div><a class='srclink' href='../src/core/internal_macros.rs.html#81-86' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.sub_assign-1' class="method"><span id='sub_assign.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.SubAssign.html#tymethod.sub_assign' class='fnname'>sub_assign</a>(&amp;mut self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#83-85' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>-=</code> operation.</p>
</div></div><h3 id='impl-RemAssign%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.RemAssign.html" title="trait std::ops::RemAssign">RemAssign</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-RemAssign%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.22.0'>1.22.0</div><a class='srclink' href='../src/core/internal_macros.rs.html#81-86' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.rem_assign' class="method"><span id='rem_assign.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.RemAssign.html#tymethod.rem_assign' class='fnname'>rem_assign</a>(&amp;mut self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#83-85' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%=</code> operation.</p>
</div></div><h3 id='impl-RemAssign%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.RemAssign.html" title="trait std::ops::RemAssign">RemAssign</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-RemAssign%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.8.0'>1.8.0</div><a class='srclink' href='../src/core/ops/arith.rs.html#890-893' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.rem_assign-1' class="method"><span id='rem_assign.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.RemAssign.html#tymethod.rem_assign' class='fnname'>rem_assign</a>(&amp;mut self, other: <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#892' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>%=</code> operation.</p>
</div></div><h3 id='impl-UpperExp' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/fmt/trait.UpperExp.html" title="trait std::fmt::UpperExp">UpperExp</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-UpperExp' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#148-152' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-2' class="method"><span id='fmt.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/fmt/trait.UpperExp.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="../std/fmt/struct.Formatter.html" title="struct std::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="../std/result/enum.Result.html" title="enum std::result::Result">Result</a>&lt;<a class="primitive" href="primitive.unit.html">()</a>, <a class="struct" href="../std/fmt/struct.Error.html" title="struct std::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#149-151' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 id='impl-Div%3Cf32x4%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32x4%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#58-64' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-26' class="type"><span id='Output.t-26' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div' class="method"><span id='div.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#61-63' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#41-48' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-27' class="type"><span id='Output.t-27' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-1' class="method"><span id='div.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#45-47' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3Cf32x2%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32x2%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#58-64' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-28' class="type"><span id='Output.t-28' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-2' class="method"><span id='div.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#61-63' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3Cf32x16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32x16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#58-64' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-29' class="type"><span id='Output.t-29' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-3' class="method"><span id='div.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#61-63' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#51-58' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-30' class="type"><span id='Output.t-30' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-4' class="method"><span id='div.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#55-57' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3Cf32x8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32x8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#58-64' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-31' class="type"><span id='Output.t-31' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-5' class="method"><span id='div.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#61-63' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3C%26%27a%20f32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, 'b&gt; <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'b <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3C%26%27a%20f32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#61-68' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-32' class="type"><span id='Output.t-32' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-6' class="method"><span id='div.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Div.html#associatedtype.Output" title="type std::ops::Div::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#65-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-Div%3Cf32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Div.html" title="trait std::ops::Div">Div</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Div%3Cf32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#465-470' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-33' class="type"><span id='Output.t-33' class='invisible'><code>type <a href='../std/ops/trait.Div.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>/</code> operator.</p>
</div><h4 id='method.div-7' class="method"><span id='div.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Div.html#tymethod.div' class='fnname'>div</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#469' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/</code> operation.</p>
</div></div><h3 id='impl-FromStr' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/str/trait.FromStr.html" title="trait std::str::FromStr">FromStr</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-FromStr' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/dec2flt/mod.rs.html#112-143' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Err' class="type"><span id='Err.t' class='invisible'><code>type <a href='../std/str/trait.FromStr.html#associatedtype.Err' class="type">Err</a> = <a class="struct" href="../std/num/struct.ParseFloatError.html" title="struct std::num::ParseFloatError">ParseFloatError</a></code></span></h4>
<div class='docblock'><p>The associated error which can be returned from parsing.</p>
</div><h4 id='method.from_str' class="method"><span id='from_str.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/str/trait.FromStr.html#tymethod.from_str' class='fnname'>from_str</a>(src: &amp;<a class="primitive" href="primitive.str.html">str</a>) -&gt; <a class="enum" href="../std/result/enum.Result.html" title="enum std::result::Result">Result</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>, <a class="struct" href="../std/num/struct.ParseFloatError.html" title="struct std::num::ParseFloatError">ParseFloatError</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/dec2flt/mod.rs.html#140-142' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Converts a string in base 10 to a float.
Accepts an optional decimal exponent.</p>
<p>This function accepts strings such as</p>
<ul>
<li>'3.14'</li>
<li>'-3.14'</li>
<li>'2.5E10', or equivalently, '2.5e10'</li>
<li>'2.5E-10'</li>
<li>'5.'</li>
<li>'.5', or, equivalently,  '0.5'</li>
<li>'inf', '-inf', 'NaN'</li>
</ul>
<p>Leading and trailing whitespace represent an error.</p>
<h1 id="arguments" class="section-header"><a href="#arguments">Arguments</a></h1>
<ul>
<li>src - A string</li>
</ul>
<h1 id="return-value" class="section-header"><a href="#return-value">Return value</a></h1>
<p><code>Err(ParseFloatError)</code> if the string did not represent a valid
number.  Otherwise, <code>Ok(n)</code> where <code>n</code> is the floating-point
number represented by <code>src</code>.</p>
</div></div><h3 id='impl-LowerExp' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/fmt/trait.LowerExp.html" title="trait std::fmt::LowerExp">LowerExp</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-LowerExp' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#141-145' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.fmt-3' class="method"><span id='fmt.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/fmt/trait.LowerExp.html#tymethod.fmt' class='fnname'>fmt</a>(&amp;self, fmt: &amp;mut <a class="struct" href="../std/fmt/struct.Formatter.html" title="struct std::fmt::Formatter">Formatter</a>) -&gt; <a class="enum" href="../std/result/enum.Result.html" title="enum std::result::Result">Result</a>&lt;<a class="primitive" href="primitive.unit.html">()</a>, <a class="struct" href="../std/fmt/struct.Error.html" title="struct std::fmt::Error">Error</a>&gt;</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/fmt/float.rs.html#142-144' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Formats the value using the given formatter.</p>
</div></div><h3 id='impl-Clone' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/clone/trait.Clone.html" title="trait std::clone::Clone">Clone</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Clone' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/clone.rs.html#164-169' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.clone' class="method"><span id='clone.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/clone/trait.Clone.html#tymethod.clone' class='fnname'>clone</a>(&amp;self) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/clone.rs.html#166-168' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns a copy of the value. <a href="../std/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id='method.clone_from' class="method"><span id='clone_from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/clone/trait.Clone.html#method.clone_from' class='fnname'>clone_from</a>(&amp;mut self, source: <a class="primitive" href="primitive.reference.html">&amp;</a>Self)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/clone.rs.html#130-132' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="../std/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id='impl-AddAssign%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.AddAssign.html" title="trait std::ops::AddAssign">AddAssign</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-AddAssign%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.8.0'>1.8.0</div><a class='srclink' href='../src/core/ops/arith.rs.html#690-694' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.add_assign' class="method"><span id='add_assign.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.AddAssign.html#tymethod.add_assign' class='fnname'>add_assign</a>(&amp;mut self, other: <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#693' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+=</code> operation.</p>
</div></div><h3 id='impl-AddAssign%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.AddAssign.html" title="trait std::ops::AddAssign">AddAssign</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-AddAssign%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.22.0'>1.22.0</div><a class='srclink' href='../src/core/internal_macros.rs.html#81-86' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.add_assign-1' class="method"><span id='add_assign.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.AddAssign.html#tymethod.add_assign' class='fnname'>add_assign</a>(&amp;mut self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#83-85' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+=</code> operation.</p>
</div></div><h3 id='impl-From%3Cu16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/convert/trait.From.html" title="trait std::convert::From">From</a>&lt;<a class="primitive" href="primitive.u16.html">u16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-From%3Cu16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div><a class='srclink' href='../src/core/num/mod.rs.html#4715-4720' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Converts <code>u16</code> to <code>f32</code> losslessly.</p>
</div><div class='impl-items'><h4 id='method.from' class="method"><span id='from.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(small: <a class="primitive" href="primitive.u16.html">u16</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/mod.rs.html#4717-4719' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3Cu8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/convert/trait.From.html" title="trait std::convert::From">From</a>&lt;<a class="primitive" href="primitive.u8.html">u8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-From%3Cu8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div><a class='srclink' href='../src/core/num/mod.rs.html#4715-4720' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Converts <code>u8</code> to <code>f32</code> losslessly.</p>
</div><div class='impl-items'><h4 id='method.from-1' class="method"><span id='from.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(small: <a class="primitive" href="primitive.u8.html">u8</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/mod.rs.html#4717-4719' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3Ci16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/convert/trait.From.html" title="trait std::convert::From">From</a>&lt;<a class="primitive" href="primitive.i16.html">i16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-From%3Ci16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div><a class='srclink' href='../src/core/num/mod.rs.html#4715-4720' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Converts <code>i16</code> to <code>f32</code> losslessly.</p>
</div><div class='impl-items'><h4 id='method.from-2' class="method"><span id='from.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(small: <a class="primitive" href="primitive.i16.html">i16</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/mod.rs.html#4717-4719' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-From%3Ci8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/convert/trait.From.html" title="trait std::convert::From">From</a>&lt;<a class="primitive" href="primitive.i8.html">i8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-From%3Ci8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.6.0'>1.6.0</div><a class='srclink' href='../src/core/num/mod.rs.html#4715-4720' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='docblock'><p>Converts <code>i8</code> to <code>f32</code> losslessly.</p>
</div><div class='impl-items'><h4 id='method.from-3' class="method"><span id='from.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/convert/trait.From.html#tymethod.from' class='fnname'>from</a>(small: <a class="primitive" href="primitive.i8.html">i8</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/num/mod.rs.html#4717-4719' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the conversion.</p>
</div></div><h3 id='impl-Copy' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/marker/trait.Copy.html" title="trait std::marker::Copy">Copy</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Copy' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/marker.rs.html#632' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-DivAssign%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.DivAssign.html" title="trait std::ops::DivAssign">DivAssign</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-DivAssign%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.22.0'>1.22.0</div><a class='srclink' href='../src/core/internal_macros.rs.html#81-86' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.div_assign' class="method"><span id='div_assign.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.DivAssign.html#tymethod.div_assign' class='fnname'>div_assign</a>(&amp;mut self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#83-85' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/=</code> operation.</p>
</div></div><h3 id='impl-DivAssign%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.DivAssign.html" title="trait std::ops::DivAssign">DivAssign</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-DivAssign%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.8.0'>1.8.0</div><a class='srclink' href='../src/core/ops/arith.rs.html#840-843' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.div_assign-1' class="method"><span id='div_assign.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.DivAssign.html#tymethod.div_assign' class='fnname'>div_assign</a>(&amp;mut self, other: <a class="primitive" href="primitive.f32.html">f32</a>)</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#842' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>/=</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32x4%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32x4%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#13-19' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-34' class="type"><span id='Output.t-34' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add' class="method"><span id='add.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x4.html" title="struct std::simd::f32x4">f32x4</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#16-18' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32x8%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32x8%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#13-19' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-35' class="type"><span id='Output.t-35' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-1' class="method"><span id='add.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x8.html" title="struct std::simd::f32x8">f32x8</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#16-18' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#105-111' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-36' class="type"><span id='Output.t-36' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-2' class="method"><span id='add.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/ops/arith.rs.html#110' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#51-58' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-37' class="type"><span id='Output.t-37' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-3' class="method"><span id='add.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#55-57' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32x2%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32x2%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#13-19' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-38' class="type"><span id='Output.t-38' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-4' class="method"><span id='add.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x2.html" title="struct std::simd::f32x2">f32x2</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#16-18' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32x16%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32x16%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#13-19' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-39' class="type"><span id='Output.t-39' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-5' class="method"><span id='add.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a>) -&gt; <a class="struct" href="../std/simd/struct.f32x16.html" title="struct std::simd::f32x16">f32x16</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/up/stdsimd/coresimd/ppsv/api/arithmetic_scalar_ops.rs.html#16-18' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3C%26%27a%20f32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a, 'b&gt; <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'b <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3C%26%27a%20f32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#61-68' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-40' class="type"><span id='Output.t-40' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-6' class="method"><span id='add.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#65-67' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Add%3Cf32%3E-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for &amp;'a <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Add%3Cf32%3E-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#41-48' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Output-41' class="type"><span id='Output.t-41' class='invisible'><code>type <a href='../std/ops/trait.Add.html#associatedtype.Output' class="type">Output</a> = &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></h4>
<div class='docblock'><p>The resulting type after applying the <code>+</code> operator.</p>
</div><h4 id='method.add-7' class="method"><span id='add.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/ops/trait.Add.html#tymethod.add' class='fnname'>add</a>(self, other: <a class="primitive" href="primitive.f32.html">f32</a>) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="../std/ops/trait.Add.html" title="trait std::ops::Add">Add</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt;&gt;::<a class="type" href="../std/ops/trait.Add.html#associatedtype.Output" title="type std::ops::Add::Output">Output</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/internal_macros.rs.html#45-47' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Performs the <code>+</code> operation.</p>
</div></div><h3 id='impl-Default' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/default/trait.Default.html" title="trait std::default::Default">Default</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Default' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/default.rs.html#131-135' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.default' class="method"><span id='default.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/default/trait.Default.html#tymethod.default' class='fnname'>default</a>() -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/default.rs.html#134' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns the default value of <code>0.0</code></p>
</div></div><h3 id='impl-Product%3C%26%27a%20f32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl&lt;'a&gt; <a class="trait" href="../std/iter/trait.Product.html" title="trait std::iter::Product">Product</a>&lt;&amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Product%3C%26%27a%20f32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.12.0'>1.12.0</div><a class='srclink' href='../src/core/iter/traits.rs.html#835-839' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.product' class="method"><span id='product.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/iter/trait.Product.html#tymethod.product' class='fnname'>product</a>&lt;I&gt;(iter: I) -&gt; <a class="primitive" href="primitive.f32.html">f32</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../std/iter/trait.Iterator.html" title="trait std::iter::Iterator">Iterator</a>&lt;Item = &amp;'a <a class="primitive" href="primitive.f32.html">f32</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/iter/traits.rs.html#836-838' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method which takes an iterator and generates <code>Self</code> from the elements by multiplying the items. <a href="../std/iter/trait.Product.html#tymethod.product">Read more</a></p>
</div></div><h3 id='impl-Product%3Cf32%3E' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/iter/trait.Product.html" title="trait std::iter::Product">Product</a>&lt;<a class="primitive" href="primitive.f32.html">f32</a>&gt; for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Product%3Cf32%3E' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><div class='since' title='Stable since Rust version 1.12.0'>1.12.0</div><a class='srclink' href='../src/core/iter/traits.rs.html#821-825' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='method.product-1' class="method"><span id='product.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../std/iter/trait.Product.html#tymethod.product' class='fnname'>product</a>&lt;I&gt;(iter: I) -&gt; <a class="primitive" href="primitive.f32.html">f32</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../std/iter/trait.Iterator.html" title="trait std::iter::Iterator">Iterator</a>&lt;Item = <a class="primitive" href="primitive.f32.html">f32</a>&gt;,&nbsp;</span></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/core/iter/traits.rs.html#822-824' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Method which takes an iterator and generates <code>Self</code> from the elements by multiplying the items. <a href="../std/iter/trait.Product.html#tymethod.product">Read more</a></p>
</div></div><h3 id='impl-Float' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Float' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#89-130' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><div class='impl-items'><h4 id='associatedtype.Int' class="type"><span id='Int.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int' class="type">Int</a> = <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>A uint of the same with as the float</p>
</div><h4 id='associatedtype.SignedInt' class="type"><span id='SignedInt.t' class='invisible'><code>type <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.SignedInt' class="type">SignedInt</a> = <a class="primitive" href="primitive.i32.html">i32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>A int of the same with as the float</p>
</div><h4 id='associatedconstant.ZERO' class="associatedconstant"><span id='ZERO.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.ZERO' class="constant"><b>ZERO</b></a>: <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">ZERO</span>: <span class="ident">f32</span> <span class="op">=</span> <span class="number">0.0</span></pre>
</div><h4 id='associatedconstant.ONE' class="associatedconstant"><span id='ONE.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.ONE' class="constant"><b>ONE</b></a>: <a class="primitive" href="primitive.f32.html">f32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">ONE</span>: <span class="ident">f32</span> <span class="op">=</span> <span class="number">1.0</span></pre>
</div><h4 id='associatedconstant.BITS' class="associatedconstant"><span id='BITS.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.BITS' class="constant"><b>BITS</b></a>: <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">BITS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="number">32</span></pre>
<p>The bitwidth of the float type</p>
</div><h4 id='associatedconstant.SIGNIFICAND_BITS' class="associatedconstant"><span id='SIGNIFICAND_BITS.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.SIGNIFICAND_BITS' class="constant"><b>SIGNIFICAND_BITS</b></a>: <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">SIGNIFICAND_BITS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="number">23</span></pre>
<p>The bitwidth of the significand</p>
</div><h4 id='associatedconstant.SIGN_MASK' class="associatedconstant"><span id='SIGN_MASK.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.SIGN_MASK' class="constant"><b>SIGN_MASK</b></a>: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">SIGN_MASK</span>: <span class="op">&lt;</span><span class="ident">f32</span> <span class="kw">as</span> <span class="ident">Float</span><span class="op">&gt;</span>::<span class="ident">Int</span> <span class="op">=</span> <span class="number">1</span> <span class="op">&lt;&lt;</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">BITS</span> <span class="op">-</span> <span class="number">1</span></pre>
<p>A mask for the sign bit</p>
</div><h4 id='associatedconstant.SIGNIFICAND_MASK' class="associatedconstant"><span id='SIGNIFICAND_MASK.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.SIGNIFICAND_MASK' class="constant"><b>SIGNIFICAND_MASK</b></a>: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">SIGNIFICAND_MASK</span>: <span class="op">&lt;</span><span class="ident">f32</span> <span class="kw">as</span> <span class="ident">Float</span><span class="op">&gt;</span>::<span class="ident">Int</span> <span class="op">=</span> (<span class="number">1</span> <span class="op">&lt;&lt;</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">SIGNIFICAND_BITS</span>) <span class="op">-</span> <span class="number">1</span></pre>
<p>A mask for the significand</p>
</div><h4 id='associatedconstant.IMPLICIT_BIT' class="associatedconstant"><span id='IMPLICIT_BIT.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.IMPLICIT_BIT' class="constant"><b>IMPLICIT_BIT</b></a>: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">IMPLICIT_BIT</span>: <span class="op">&lt;</span><span class="ident">f32</span> <span class="kw">as</span> <span class="ident">Float</span><span class="op">&gt;</span>::<span class="ident">Int</span> <span class="op">=</span> <span class="number">1</span> <span class="op">&lt;&lt;</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">SIGNIFICAND_BITS</span></pre>
</div><h4 id='associatedconstant.EXPONENT_MASK' class="associatedconstant"><span id='EXPONENT_MASK.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.EXPONENT_MASK' class="constant"><b>EXPONENT_MASK</b></a>: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">EXPONENT_MASK</span>: <span class="op">&lt;</span><span class="ident">f32</span> <span class="kw">as</span> <span class="ident">Float</span><span class="op">&gt;</span>::<span class="ident">Int</span> <span class="op">=</span> <span class="op">!</span>(<span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">SIGN_MASK</span> <span class="op">|</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">SIGNIFICAND_MASK</span>)</pre>
<p>A mask for the exponent</p>
</div><h4 id='method.repr' class="method"><span id='repr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#tymethod.repr' class='fnname'>repr</a>(self) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#103-105' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>Returns <code>self</code> transmuted to <code>Self::Int</code></p>
</div><h4 id='method.signed_repr' class="method"><span id='signed_repr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#tymethod.signed_repr' class='fnname'>signed_repr</a>(self) -&gt; &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.SignedInt" title="type compiler_builtins::float::Float::SignedInt">SignedInt</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#106-108' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>Returns <code>self</code> transmuted to <code>Self::SignedInt</code></p>
</div><h4 id='method.from_repr' class="method"><span id='from_repr.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#tymethod.from_repr' class='fnname'>from_repr</a>(a: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#117-119' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>Returns a <code>Self::Int</code> transmuted back to <code>Self</code></p>
</div><h4 id='method.from_parts' class="method"><span id='from_parts.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#tymethod.from_parts' class='fnname'>from_parts</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;sign: <a class="primitive" href="primitive.bool.html">bool</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;exponent: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a>, <br>&nbsp;&nbsp;&nbsp;&nbsp;significand: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a><br>) -&gt; <a class="primitive" href="primitive.f32.html">f32</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#120-124' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>Constructs a <code>Self</code> from its parts. Inputs are treated as bits and shifted into position.</p>
</div><h4 id='method.normalize' class="method"><span id='normalize.v' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#tymethod.normalize' class='fnname'>normalize</a>(significand: &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a>) -&gt; <a class="primitive" href="primitive.tuple.html">(</a><a class="primitive" href="primitive.i32.html">i32</a>, &lt;<a class="primitive" href="primitive.f32.html">f32</a> as <a class="trait" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html" title="trait compiler_builtins::float::Float">Float</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedtype.Int" title="type compiler_builtins::float::Float::Int">Int</a><a class="primitive" href="primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='https://doc.rust-lang.org/nightly/src/compiler_builtins/float/mod.rs.html#125-129' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><p>Returns (normalized exponent, normalized significand)</p>
</div><h4 id='associatedconstant.EXPONENT_BITS' class="associatedconstant"><span id='EXPONENT_BITS.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.EXPONENT_BITS' class="constant"><b>EXPONENT_BITS</b></a>: <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">EXPONENT_BITS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="doccomment">/// The bitwidth of the exponent</span>
<span class="kw">const</span> <span class="ident">EXPONENT_BITS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">BITS</span> <span class="op">-</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">SIGNIFICAND_BITS</span> <span class="op">-</span> <span class="number">1</span>;</pre>
<p>The bitwidth of the exponent</p>
</div><h4 id='associatedconstant.EXPONENT_MAX' class="associatedconstant"><span id='EXPONENT_MAX.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.EXPONENT_MAX' class="constant"><b>EXPONENT_MAX</b></a>: <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">EXPONENT_MAX</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="doccomment">/// The maximum value of the exponent</span>
<span class="kw">const</span> <span class="ident">EXPONENT_MAX</span>: <span class="ident">u32</span> <span class="op">=</span> (<span class="number">1</span> <span class="op">&lt;&lt;</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">EXPONENT_BITS</span>) <span class="op">-</span> <span class="number">1</span>;</pre>
<p>The maximum value of the exponent</p>
</div><h4 id='associatedconstant.EXPONENT_BIAS' class="associatedconstant"><span id='EXPONENT_BIAS.v' class='invisible'><code>const <a href='https://doc.rust-lang.org/nightly/compiler_builtins/float/trait.Float.html#associatedconstant.EXPONENT_BIAS' class="constant"><b>EXPONENT_BIAS</b></a>: <a class="primitive" href="primitive.u32.html">u32</a></code></span></h4>
<div class='stability'><div class='stab unstable'><details><summary><span class=microscope>🔬</span> This is a nightly-only experimental API.  (<code>compiler_builtins_lib</code>)</summary><p>Compiler builtins. Will never become stable.</p>
</details></div></div><div class='docblock'><pre class="rust ">
<span class="ident">EXPONENT_BIAS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="doccomment">/// The exponent bias value</span>
<span class="kw">const</span> <span class="ident">EXPONENT_BIAS</span>: <span class="ident">u32</span> <span class="op">=</span> <span class="op">&lt;</span><span class="self">Self</span><span class="op">&gt;</span>::<span class="ident">EXPONENT_MAX</span> <span class="op">&gt;&gt;</span> <span class="number">1</span>;</pre>
<p>The exponent bias value</p>
</div></div></div>
                <h2 id='synthetic-implementations' class='small-section-header'>
                  Auto Trait Implementations<a href='#synthetic-implementations' class='anchor'></a>
                </h2>
                <div id='synthetic-implementations-list'>
            <h3 id='impl-Send' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/marker/trait.Send.html" title="trait std::marker::Send">Send</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Send' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div><h3 id='impl-Sync' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../std/marker/trait.Sync.html" title="trait std::marker::Sync">Sync</a> for <a class="primitive" href="primitive.f32.html">f32</a></code><a href='#impl-Sync' class='anchor'></a></span></td><td><span class='out-of-band'></span></td></tr></tbody></table></h3><div class='impl-items'></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "std";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>