You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trac3r-rust/doc/libm/trait.F32Ext.html

46 lines
25 KiB

5 years ago
<!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 `F32Ext` trait in crate `libm`."><meta name="keywords" content="rust, rustlang, rust-lang, F32Ext"><title>libm::F32Ext - 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><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="shortcut icon" href="../favicon.ico"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 8]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu">&#9776;</div><a href='../libm/index.html'><div class='logo-container'><img src='../rust-logo.png' alt='logo'></div></a><p class='location'>Trait F32Ext</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.abs">abs</a><a href="#tymethod.acos">acos</a><a href="#tymethod.acosh">acosh</a><a href="#tymethod.asin">asin</a><a href="#tymethod.asinh">asinh</a><a href="#tymethod.atan">atan</a><a href="#tymethod.atan2">atan2</a><a href="#tymethod.atanh">atanh</a><a href="#tymethod.cbrt">cbrt</a><a href="#tymethod.ceil">ceil</a><a href="#tymethod.cos">cos</a><a href="#tymethod.cosh">cosh</a><a href="#tymethod.div_euc">div_euc</a><a href="#tymethod.exp">exp</a><a href="#tymethod.exp2">exp2</a><a href="#tymethod.exp_m1">exp_m1</a><a href="#tymethod.fdim">fdim</a><a href="#tymethod.floor">floor</a><a href="#tymethod.fract">fract</a><a href="#tymethod.hypot">hypot</a><a href="#tymethod.ln">ln</a><a href="#tymethod.ln_1p">ln_1p</a><a href="#tymethod.log">log</a><a href="#tymethod.log10">log10</a><a href="#tymethod.log2">log2</a><a href="#tymethod.max">max</a><a href="#tymethod.min">min</a><a href="#tymethod.mod_euc">mod_euc</a><a href="#tymethod.mul_add">mul_add</a><a href="#tymethod.powf">powf</a><a href="#tymethod.round">round</a><a href="#tymethod.sin">sin</a><a href="#tymethod.sin_cos">sin_cos</a><a href="#tymethod.sinh">sinh</a><a href="#tymethod.sqrt">sqrt</a><a href="#tymethod.tan">tan</a><a href="#tymethod.tanh">tanh</a><a href="#tymethod.trunc">trunc</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>libm</a></p><script>window.sidebarCurrent = {name: 'F32Ext', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><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='out-of-band'><span id='render-detail'><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class='inner'>&#x2212;</span>]</a></span><a class='srclink' href='../src/libm/lib.rs.html#61-143' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='index.html'>libm</a>::<wbr><a class="trait" href=''>F32Ext</a></span></h1><div class
fn <a href='#tymethod.floor' class='fnname'>floor</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.ceil' class='fnname'>ceil</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.round' class='fnname'>round</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.trunc' class='fnname'>trunc</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.fdim' class='fnname'>fdim</a>(self, rhs: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.fract' class='fnname'>fract</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.abs' class='fnname'>abs</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.mul_add' class='fnname'>mul_add</a>(self, a: Self, b: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.div_euc' class='fnname'>div_euc</a>(self, rhs: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.mod_euc' class='fnname'>mod_euc</a>(self, rhs: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.powf' class='fnname'>powf</a>(self, n: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.sqrt' class='fnname'>sqrt</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.exp' class='fnname'>exp</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.exp2' class='fnname'>exp2</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.ln' class='fnname'>ln</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.log' class='fnname'>log</a>(self, base: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.log2' class='fnname'>log2</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.log10' class='fnname'>log10</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.cbrt' class='fnname'>cbrt</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.hypot' class='fnname'>hypot</a>(self, other: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.sin' class='fnname'>sin</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.cos' class='fnname'>cos</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.tan' class='fnname'>tan</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.asin' class='fnname'>asin</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.acos' class='fnname'>acos</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.atan' class='fnname'>atan</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.atan2' class='fnname'>atan2</a>(self, other: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.sin_cos' class='fnname'>sin_cos</a>(self) -&gt; (Self, Self);
<div class='item-spacer'></div> fn <a href='#tymethod.exp_m1' class='fnname'>exp_m1</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.ln_1p' class='fnname'>ln_1p</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.sinh' class='fnname'>sinh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.cosh' class='fnname'>cosh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.tanh' class='fnname'>tanh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.asinh' class='fnname'>asinh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.acosh' class='fnname'>acosh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.atanh' class='fnname'>atanh</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.min' class='fnname'>min</a>(self, other: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.max' class='fnname'>max</a>(self, other: Self) -&gt; Self;
}</pre></div><div class='docblock'><p>Math support for <code>f32</code></p>
<p>This trait is sealed and cannot be implemented outside of <code>libm</code>.</p>
</div>
<h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.floor' class='method'><code id='floor.v'>fn <a href='#tymethod.floor' class='fnname'>floor</a>(self) -&gt; Self</code></h3><h3 id='tymethod.ceil' class='method'><code id='ceil.v'>fn <a href='#tymethod.ceil' class='fnname'>ceil</a>(self) -&gt; Self</code></h3><h3 id='tymethod.round' class='method'><code id='round.v'>fn <a href='#tymethod.round' class='fnname'>round</a>(self) -&gt; Self</code></h3><h3 id='tymethod.trunc' class='method'><code id='trunc.v'>fn <a href='#tymethod.trunc' class='fnname'>trunc</a>(self) -&gt; Self</code></h3><h3 id='tymethod.fdim' class='method'><code id='fdim.v'>fn <a href='#tymethod.fdim' class='fnname'>fdim</a>(self, rhs: Self) -&gt; Self</code></h3><h3 id='tymethod.fract' class='method'><code id='fract.v'>fn <a href='#tymethod.fract' class='fnname'>fract</a>(self) -&gt; Self</code></h3><h3 id='tymethod.abs' class='method'><code id='abs.v'>fn <a href='#tymethod.abs' class='fnname'>abs</a>(self) -&gt; Self</code></h3><h3 id='tymethod.mul_add' class='method'><code id='mul_add.v'>fn <a href='#tymethod.mul_add' class='fnname'>mul_add</a>(self, a: Self, b: Self) -&gt; Self</code></h3><h3 id='tymethod.div_euc' class='method'><code id='div_euc.v'>fn <a href='#tymethod.div_euc' class='fnname'>div_euc</a>(self, rhs: Self) -&gt; Self</code></h3><h3 id='tymethod.mod_euc' class='method'><code id='mod_euc.v'>fn <a href='#tymethod.mod_euc' class='fnname'>mod_euc</a>(self, rhs: Self) -&gt; Self</code></h3><h3 id='tymethod.powf' class='method'><code id='powf.v'>fn <a href='#tymethod.powf' class='fnname'>powf</a>(self, n: Self) -&gt; Self</code></h3><h3 id='tymethod.sqrt' class='method'><code id='sqrt.v'>fn <a href='#tymethod.sqrt' class='fnname'>sqrt</a>(self) -&gt; Self</code></h3><h3 id='tymethod.exp' class='method'><code id='exp.v'>fn <a href='#tymethod.exp' class='fnname'>exp</a>(self) -&gt; Self</code></h3><h3 id='tymethod.exp2' class='method'><code id='exp2.v'>fn <a href='#tymethod.exp2' class='fnname'>exp2</a>(self) -&gt; Self</code></h3><h3 id='tymethod.ln' class='method'><code id='ln.v'>fn <a href='#tymethod.ln' class='fnname'>ln</a>(self) -&gt; Self</code></h3><h3 id='tymethod.log' class='method'><code id='log.v'>fn <a href='#tymethod.log' class='fnname'>log</a>(self, base: Self) -&gt; Self</code></h3><h3 id='tymethod.log2' class='method'><code id='log2.v'>fn <a href='#tymethod.log2' class='fnname'>log2</a>(self) -&gt; Self</code></h3><h3 id='tymethod.log10' class='method'><code id='log10.v'>fn <a href='#tymethod.log10' class='fnname'>log10</a>(self) -&gt; Self</code></h3><h3 id='tymethod.cbrt' class='method'><code id='cbrt.v'>fn <a href='#tymethod.cbrt' class='fnname'>cbrt</a>(self) -&gt; Self</code></h3><h3 id='tymethod.hypot' class='method'><code id='hypot.v'>fn <a href='#tymethod.hypot' class='fnname'>hypot</a>(self, other: Self) -&gt; Self</code></h3><h3 id='tymethod.sin' class='method'><code id='sin.v'>fn <a href='#tymethod.sin' class='fnname'>sin</a>(self) -&gt; Self</code></h3><h3 id='tymethod.cos' class='method'><code id='cos.v'>fn <a href='#tymethod.cos' class='fnname'>cos</a>(self) -&gt; Self</code></h3><h3 id='tymethod.tan' class='method'><code id='tan.v'>fn <a href='#tymethod.tan' class='fnname'>tan</a>(self) -&gt; Self</code></h3><h3 id='tymethod.asin' class='method'><code id='asin.v'>fn <a href='#tymethod.asin' class='fnname'>asin</a>(self) -&gt; Self</code></h3><h3 id='tymethod.acos' class='method'><code id='acos.v'>fn <a href='#tymethod.acos' class='fnname'>acos</a>(self) -&gt; Self</code></h3><h3 id='tymethod.atan' class='method'><code id='atan.v'>fn <a href='#tymethod.atan' class='fnname'>atan</a>(self) -&gt; Self</code></h3><h3 id='tymethod.atan2' class='method'><code id='atan2.v'>fn <a href='#tymethod.atan2' class='fnname'>atan2</a>(self, other: Self) -&gt; Self</code></h3><h3 id='tymethod.sin_cos' class='method'><code id='sin_cos.v'>fn <a href='#tymethod.sin_cos' class='fnname'>sin_cos</a>(self) -&gt; (Self
<h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-F32Ext' class='impl'><code class='in-band'>impl F32Ext for f32</code><a href='#impl-F32Ext' class='anchor'></a><a class='srclink' href='../src/libm/lib.rs.html#145-344' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='method.floor' class="method hidden"><code id='floor.v-1'>fn <a href='#method.floor' class='fnname'>floor</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#147-149' title='goto source code'>[src]</a></h4><h4 id='method.ceil' class="method hidden"><code id='ceil.v-1'>fn <a href='#method.ceil' class='fnname'>ceil</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#152-154' title='goto source code'>[src]</a></h4><h4 id='method.round' class="method hidden"><code id='round.v-1'>fn <a href='#method.round' class='fnname'>round</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#157-159' title='goto source code'>[src]</a></h4><h4 id='method.trunc' class="method hidden"><code id='trunc.v-1'>fn <a href='#method.trunc' class='fnname'>trunc</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#162-164' title='goto source code'>[src]</a></h4><h4 id='method.fdim' class="method hidden"><code id='fdim.v-1'>fn <a href='#method.fdim' class='fnname'>fdim</a>(self, rhs: Self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#167-169' title='goto source code'>[src]</a></h4><h4 id='method.fract' class="method hidden"><code id='fract.v-1'>fn <a href='#method.fract' class='fnname'>fract</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#172-174' title='goto source code'>[src]</a></h4><h4 id='method.abs' class="method hidden"><code id='abs.v-1'>fn <a href='#method.abs' class='fnname'>abs</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#177-179' title='goto source code'>[src]</a></h4><h4 id='method.mul_add' class="method hidden"><code id='mul_add.v-1'>fn <a href='#method.mul_add' class='fnname'>mul_add</a>(self, a: Self, b: Self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#182-184' title='goto source code'>[src]</a></h4><h4 id='method.div_euc' class="method hidden"><code id='div_euc.v-1'>fn <a href='#method.div_euc' class='fnname'>div_euc</a>(self, rhs: Self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#187-193' title='goto source code'>[src]</a></h4><h4 id='method.mod_euc' class="method hidden"><code id='mod_euc.v-1'>fn <a href='#method.mod_euc' class='fnname'>mod_euc</a>(self, rhs: f32) -&gt; f32</code><a class='srclink' href='../src/libm/lib.rs.html#196-203' title='goto source code'>[src]</a></h4><h4 id='method.powf' class="method hidden"><code id='powf.v-1'>fn <a href='#method.powf' class='fnname'>powf</a>(self, n: Self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#206-208' title='goto source code'>[src]</a></h4><h4 id='method.sqrt' class="method hidden"><code id='sqrt.v-1'>fn <a href='#method.sqrt' class='fnname'>sqrt</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#211-213' title='goto source code'>[src]</a></h4><h4 id='method.exp' class="method hidden"><code id='exp.v-1'>fn <a href='#method.exp' class='fnname'>exp</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#216-218' title='goto source code'>[src]</a></h4><h4 id='method.exp2' class="method hidden"><code id='exp2.v-1'>fn <a href='#method.exp2' class='fnname'>exp2</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#221-223' title='goto source code'>[src]</a></h4><h4 id='method.ln' class="method hidden"><code id='ln.v-1'>fn <a href='#method.ln' class='fnname'>ln</a>(self) -&gt; Self</code><a class='srclink' href='../src/libm/lib.rs.html#226-228' title='goto source code'>[src]</a></h4><h4 id='method.log' class="method hidden"><code id='log.v-1'>fn <a href='#method.log' class=
src="../implementors/libm/trait.F32Ext.js">
</script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd></kbd></dt><dd>Move up in search results</dd><dt><kbd></kbd></dt><dd>Move down in search results</dd><dt><kbd></kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "libm";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>