blob: e861857b9721aa547cd8b6c8eea230f1402b52df [file] [log] [blame]
<!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="Generic helper for libm functions, abstracting over f32 and f64. "><meta name="keywords" content="rust, rustlang, rust-lang, Libm"><title>Libm in libm - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" href="../normalize.css"><link rel="stylesheet" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../ayu.css" disabled><link rel="stylesheet" href="../dark.css" disabled><link rel="stylesheet" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../libm/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../libm/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Libm</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block"><li><a href="#method.acos">acos</a></li><li><a href="#method.acos-1">acos</a></li><li><a href="#method.acosh">acosh</a></li><li><a href="#method.acosh-1">acosh</a></li><li><a href="#method.asin">asin</a></li><li><a href="#method.asin-1">asin</a></li><li><a href="#method.asinh">asinh</a></li><li><a href="#method.asinh-1">asinh</a></li><li><a href="#method.atan">atan</a></li><li><a href="#method.atan-1">atan</a></li><li><a href="#method.atan2">atan2</a></li><li><a href="#method.atan2-1">atan2</a></li><li><a href="#method.atanh">atanh</a></li><li><a href="#method.atanh-1">atanh</a></li><li><a href="#method.cbrt">cbrt</a></li><li><a href="#method.cbrt-1">cbrt</a></li><li><a href="#method.ceil">ceil</a></li><li><a href="#method.ceil-1">ceil</a></li><li><a href="#method.copysign">copysign</a></li><li><a href="#method.copysign-1">copysign</a></li><li><a href="#method.cos">cos</a></li><li><a href="#method.cos-1">cos</a></li><li><a href="#method.cosh">cosh</a></li><li><a href="#method.cosh-1">cosh</a></li><li><a href="#method.erf">erf</a></li><li><a href="#method.erf-1">erf</a></li><li><a href="#method.erfc">erfc</a></li><li><a href="#method.erfc-1">erfc</a></li><li><a href="#method.exp">exp</a></li><li><a href="#method.exp-1">exp</a></li><li><a href="#method.exp10">exp10</a></li><li><a href="#method.exp10-1">exp10</a></li><li><a href="#method.exp2">exp2</a></li><li><a href="#method.exp2-1">exp2</a></li><li><a href="#method.expm1">expm1</a></li><li><a href="#method.expm1-1">expm1</a></li><li><a href="#method.fabs">fabs</a></li><li><a href="#method.fabs-1">fabs</a></li><li><a href="#method.fdim">fdim</a></li><li><a href="#method.fdim-1">fdim</a></li><li><a href="#method.floor">floor</a></li><li><a href="#method.floor-1">floor</a></li><li><a href="#method.fma">fma</a></li><li><a href="#method.fma-1">fma</a></li><li><a href="#method.fmax">fmax</a></li><li><a href="#method.fmax-1">fmax</a></li><li><a href="#method.fmin">fmin</a></li><li><a href="#method.fmin-1">fmin</a></li><li><a href="#method.fmod">fmod</a></li><li><a href="#method.fmod-1">fmod</a></li><li><a href="#method.frexp">frexp</a></li><li><a href="#method.frexp-1">frexp</a></li><li><a href="#method.hypot">hypot</a></li><li><a href="#method.hypot-1">hypot</a></li><li><a href="#method.ilogb">ilogb</a></li><li><a href="#method.ilogb-1">ilogb</a></li><li><a href="#method.j0">j0</a></li><li><a href="#method.j0-1">j0</a></li><li><a href="#method.j1">j1</a></li><li><a href="#method.j1-1">j1</a></li><li><a href="#method.jn">jn</a></li><li><a href="#method.jn-1">jn</a></li><li><a href="#method.ldexp">ldexp</a></li><li><a href="#method.ldexp-1">ldexp</a></li><li><a href="#method.lgamma">lgamma</a></li><li><a href="#method.lgamma-1">lgamma</a></li><li><a href="#method.lgamma_r">lgamma_r</a></li><li><a href="#method.lgamma_r-1">lgamma_r</a></li><li><a href="#method.log">log</a></li><li><a href="#method.log-1">log</a></li><li><a href="#method.log10">log10</a></li><li><a href="#method.log10-1">log10</a></li><li><a href="#method.log1p">log1p</a></li><li><a href="#method.log1p-1">log1p</a></li><li><a href="#method.log2">log2</a></li><li><a href="#method.log2-1">log2</a></li><li><a href="#method.modf">modf</a></li><li><a href="#method.modf-1">modf</a></li><li><a href="#method.nextafter">nextafter</a></li><li><a href="#method.nextafter-1">nextafter</a></li><li><a href="#method.pow">pow</a></li><li><a href="#method.pow-1">pow</a></li><li><a href="#method.remainder">remainder</a></li><li><a href="#method.remainder-1">remainder</a></li><li><a href="#method.remquo">remquo</a></li><li><a href="#method.remquo-1">remquo</a></li><li><a href="#method.rint">rint</a></li><li><a href="#method.rint-1">rint</a></li><li><a href="#method.round">round</a></li><li><a href="#method.round-1">round</a></li><li><a href="#method.scalbn">scalbn</a></li><li><a href="#method.scalbn-1">scalbn</a></li><li><a href="#method.sin">sin</a></li><li><a href="#method.sin-1">sin</a></li><li><a href="#method.sincos">sincos</a></li><li><a href="#method.sincos-1">sincos</a></li><li><a href="#method.sinh">sinh</a></li><li><a href="#method.sinh-1">sinh</a></li><li><a href="#method.sqrt">sqrt</a></li><li><a href="#method.sqrt-1">sqrt</a></li><li><a href="#method.tan">tan</a></li><li><a href="#method.tan-1">tan</a></li><li><a href="#method.tanh">tanh</a></li><li><a href="#method.tanh-1">tanh</a></li><li><a href="#method.tgamma">tgamma</a></li><li><a href="#method.tgamma-1">tgamma</a></li><li><a href="#method.trunc">trunc</a></li><li><a href="#method.trunc-1">trunc</a></li><li><a href="#method.y0">y0</a></li><li><a href="#method.y0-1">y0</a></li><li><a href="#method.y1">y1</a></li><li><a href="#method.y1-1">y1</a></li><li><a href="#method.yn">yn</a></li><li><a href="#method.yn-1">yn</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block"><li><a href="#impl-RefUnwindSafe-for-Libm%3CT%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Libm%3CT%3E">Send</a></li><li><a href="#impl-Sync-for-Libm%3CT%3E">Sync</a></li><li><a href="#impl-Unpin-for-Libm%3CT%3E">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Libm%3CT%3E">UnwindSafe</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block"><li><a href="#impl-Any-for-Libm%3CT%3E">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Libm%3CT%3E">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Libm%3CT%3E">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Libm%3CT%3E">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Libm%3CT%3E">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Libm%3CT%3E">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Libm%3CT%3E">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In libm</a></h2></div></nav><main><div class="width-limiter"><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Struct <a href="index.html">libm</a>::<wbr><a class="struct" href="#">Libm</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="srclink" href="../src/libm/libm_helper.rs.html#22">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust struct"><code>pub struct Libm&lt;T&gt;(_);</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Generic helper for libm functions, abstracting over f32 and f64. <br/></p>
<h2 id="type-parameter"><a href="#type-parameter">Type Parameter:</a></h2>
<ul>
<li><code>T</code>: Either <code>f32</code> or <code>f64</code></li>
</ul>
<h2 id="examples"><a href="#examples">Examples</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>libm::{<span class="self">self</span>, Libm};
<span class="kw">const </span>PI_F32: f32 = <span class="number">3.1415927410e+00</span>;
<span class="kw">const </span>PI_F64: f64 = <span class="number">3.1415926535897931160e+00</span>;
<span class="macro">assert!</span>(Libm::&lt;f32&gt;::cos(<span class="number">0.0f32</span>) == libm::cosf(<span class="number">0.0</span>));
<span class="macro">assert!</span>(Libm::&lt;f32&gt;::sin(PI_F32) == libm::sinf(PI_F32));
<span class="macro">assert!</span>(Libm::&lt;f64&gt;::cos(<span class="number">0.0f64</span>) == libm::cos(<span class="number">0.0</span>));
<span class="macro">assert!</span>(Libm::&lt;f64&gt;::sin(PI_F64) == libm::sin(PI_F64));</code></pre></div>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Libm%3Cf32%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><a href="#impl-Libm%3Cf32%3E" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;f32&gt;</h3></section></summary><div class="impl-items"><section id="method.acos" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.acos" class="fnname">acos</a>(x: f32) -&gt; f32</h4></section><section id="method.acosh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.acosh" class="fnname">acosh</a>(x: f32) -&gt; f32</h4></section><section id="method.asin" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.asin" class="fnname">asin</a>(x: f32) -&gt; f32</h4></section><section id="method.asinh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.asinh" class="fnname">asinh</a>(x: f32) -&gt; f32</h4></section><section id="method.atan" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.atan" class="fnname">atan</a>(x: f32) -&gt; f32</h4></section><section id="method.atan2" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.atan2" class="fnname">atan2</a>(y: f32, x: f32) -&gt; f32</h4></section><section id="method.atanh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.atanh" class="fnname">atanh</a>(x: f32) -&gt; f32</h4></section><section id="method.cbrt" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.cbrt" class="fnname">cbrt</a>(x: f32) -&gt; f32</h4></section><section id="method.ceil" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.ceil" class="fnname">ceil</a>(x: f32) -&gt; f32</h4></section><section id="method.copysign" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.copysign" class="fnname">copysign</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.cos" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.cos" class="fnname">cos</a>(x: f32) -&gt; f32</h4></section><section id="method.cosh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.cosh" class="fnname">cosh</a>(x: f32) -&gt; f32</h4></section><section id="method.erf" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.erf" class="fnname">erf</a>(x: f32) -&gt; f32</h4></section><section id="method.erfc" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.erfc" class="fnname">erfc</a>(x: f32) -&gt; f32</h4></section><section id="method.exp" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.exp" class="fnname">exp</a>(x: f32) -&gt; f32</h4></section><section id="method.exp2" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.exp2" class="fnname">exp2</a>(x: f32) -&gt; f32</h4></section><section id="method.exp10" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.exp10" class="fnname">exp10</a>(x: f32) -&gt; f32</h4></section><section id="method.expm1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.expm1" class="fnname">expm1</a>(x: f32) -&gt; f32</h4></section><section id="method.fabs" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fabs" class="fnname">fabs</a>(x: f32) -&gt; f32</h4></section><section id="method.fdim" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fdim" class="fnname">fdim</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.floor" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.floor" class="fnname">floor</a>(x: f32) -&gt; f32</h4></section><section id="method.fma" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fma" class="fnname">fma</a>(x: f32, y: f32, z: f32) -&gt; f32</h4></section><section id="method.fmax" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fmax" class="fnname">fmax</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.fmin" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fmin" class="fnname">fmin</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.fmod" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.fmod" class="fnname">fmod</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.frexp" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.frexp" class="fnname">frexp</a>(x: f32) -&gt; (f32, i32)</h4></section><section id="method.hypot" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.hypot" class="fnname">hypot</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.ilogb" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.ilogb" class="fnname">ilogb</a>(x: f32) -&gt; i32</h4></section><section id="method.j0" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.j0" class="fnname">j0</a>(x: f32) -&gt; f32</h4></section><section id="method.j1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.j1" class="fnname">j1</a>(x: f32) -&gt; f32</h4></section><section id="method.jn" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.jn" class="fnname">jn</a>(n: i32, x: f32) -&gt; f32</h4></section><section id="method.ldexp" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.ldexp" class="fnname">ldexp</a>(x: f32, n: i32) -&gt; f32</h4></section><section id="method.lgamma_r" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.lgamma_r" class="fnname">lgamma_r</a>(x: f32) -&gt; (f32, i32)</h4></section><section id="method.lgamma" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.lgamma" class="fnname">lgamma</a>(x: f32) -&gt; f32</h4></section><section id="method.log" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.log" class="fnname">log</a>(x: f32) -&gt; f32</h4></section><section id="method.log1p" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.log1p" class="fnname">log1p</a>(x: f32) -&gt; f32</h4></section><section id="method.log2" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.log2" class="fnname">log2</a>(x: f32) -&gt; f32</h4></section><section id="method.log10" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.log10" class="fnname">log10</a>(x: f32) -&gt; f32</h4></section><section id="method.modf" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.modf" class="fnname">modf</a>(x: f32) -&gt; (f32, f32)</h4></section><section id="method.nextafter" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.nextafter" class="fnname">nextafter</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.pow" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.pow" class="fnname">pow</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.remainder" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.remainder" class="fnname">remainder</a>(x: f32, y: f32) -&gt; f32</h4></section><section id="method.remquo" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.remquo" class="fnname">remquo</a>(x: f32, y: f32) -&gt; (f32, i32)</h4></section><section id="method.rint" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.rint" class="fnname">rint</a>(x: f32) -&gt; f32</h4></section><section id="method.round" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.round" class="fnname">round</a>(x: f32) -&gt; f32</h4></section><section id="method.scalbn" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.scalbn" class="fnname">scalbn</a>(x: f32, n: i32) -&gt; f32</h4></section><section id="method.sin" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.sin" class="fnname">sin</a>(x: f32) -&gt; f32</h4></section><section id="method.sincos" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.sincos" class="fnname">sincos</a>(x: f32) -&gt; (f32, f32)</h4></section><section id="method.sinh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.sinh" class="fnname">sinh</a>(x: f32) -&gt; f32</h4></section><section id="method.sqrt" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.sqrt" class="fnname">sqrt</a>(x: f32) -&gt; f32</h4></section><section id="method.tan" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.tan" class="fnname">tan</a>(x: f32) -&gt; f32</h4></section><section id="method.tanh" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.tanh" class="fnname">tanh</a>(x: f32) -&gt; f32</h4></section><section id="method.tgamma" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.tgamma" class="fnname">tgamma</a>(x: f32) -&gt; f32</h4></section><section id="method.trunc" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.trunc" class="fnname">trunc</a>(x: f32) -&gt; f32</h4></section><section id="method.y0" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.y0" class="fnname">y0</a>(x: f32) -&gt; f32</h4></section><section id="method.y1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.y1" class="fnname">y1</a>(x: f32) -&gt; f32</h4></section><section id="method.yn" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#47-108">source</a><h4 class="code-header">pub fn <a href="#method.yn" class="fnname">yn</a>(n: i32, x: f32) -&gt; f32</h4></section></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Libm%3Cf64%3E" class="impl has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><a href="#impl-Libm%3Cf64%3E" class="anchor"></a><h3 class="code-header">impl <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;f64&gt;</h3></section></summary><div class="impl-items"><section id="method.acos-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.acos-1" class="fnname">acos</a>(x: f64) -&gt; f64</h4></section><section id="method.acosh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.acosh-1" class="fnname">acosh</a>(x: f64) -&gt; f64</h4></section><section id="method.asin-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.asin-1" class="fnname">asin</a>(x: f64) -&gt; f64</h4></section><section id="method.asinh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.asinh-1" class="fnname">asinh</a>(x: f64) -&gt; f64</h4></section><section id="method.atan-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.atan-1" class="fnname">atan</a>(x: f64) -&gt; f64</h4></section><section id="method.atan2-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.atan2-1" class="fnname">atan2</a>(y: f64, x: f64) -&gt; f64</h4></section><section id="method.atanh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.atanh-1" class="fnname">atanh</a>(x: f64) -&gt; f64</h4></section><section id="method.cbrt-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.cbrt-1" class="fnname">cbrt</a>(x: f64) -&gt; f64</h4></section><section id="method.ceil-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.ceil-1" class="fnname">ceil</a>(x: f64) -&gt; f64</h4></section><section id="method.copysign-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.copysign-1" class="fnname">copysign</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.cos-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.cos-1" class="fnname">cos</a>(x: f64) -&gt; f64</h4></section><section id="method.cosh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.cosh-1" class="fnname">cosh</a>(x: f64) -&gt; f64</h4></section><section id="method.erf-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.erf-1" class="fnname">erf</a>(x: f64) -&gt; f64</h4></section><section id="method.erfc-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.erfc-1" class="fnname">erfc</a>(x: f64) -&gt; f64</h4></section><section id="method.exp-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.exp-1" class="fnname">exp</a>(x: f64) -&gt; f64</h4></section><section id="method.exp2-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.exp2-1" class="fnname">exp2</a>(x: f64) -&gt; f64</h4></section><section id="method.exp10-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.exp10-1" class="fnname">exp10</a>(x: f64) -&gt; f64</h4></section><section id="method.expm1-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.expm1-1" class="fnname">expm1</a>(x: f64) -&gt; f64</h4></section><section id="method.fabs-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fabs-1" class="fnname">fabs</a>(x: f64) -&gt; f64</h4></section><section id="method.fdim-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fdim-1" class="fnname">fdim</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.floor-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.floor-1" class="fnname">floor</a>(x: f64) -&gt; f64</h4></section><section id="method.fma-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fma-1" class="fnname">fma</a>(x: f64, y: f64, z: f64) -&gt; f64</h4></section><section id="method.fmax-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fmax-1" class="fnname">fmax</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.fmin-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fmin-1" class="fnname">fmin</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.fmod-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.fmod-1" class="fnname">fmod</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.frexp-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.frexp-1" class="fnname">frexp</a>(x: f64) -&gt; (f64, i32)</h4></section><section id="method.hypot-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.hypot-1" class="fnname">hypot</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.ilogb-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.ilogb-1" class="fnname">ilogb</a>(x: f64) -&gt; i32</h4></section><section id="method.j0-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.j0-1" class="fnname">j0</a>(x: f64) -&gt; f64</h4></section><section id="method.j1-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.j1-1" class="fnname">j1</a>(x: f64) -&gt; f64</h4></section><section id="method.jn-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.jn-1" class="fnname">jn</a>(n: i32, x: f64) -&gt; f64</h4></section><section id="method.ldexp-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.ldexp-1" class="fnname">ldexp</a>(x: f64, n: i32) -&gt; f64</h4></section><section id="method.lgamma_r-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.lgamma_r-1" class="fnname">lgamma_r</a>(x: f64) -&gt; (f64, i32)</h4></section><section id="method.lgamma-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.lgamma-1" class="fnname">lgamma</a>(x: f64) -&gt; f64</h4></section><section id="method.log-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.log-1" class="fnname">log</a>(x: f64) -&gt; f64</h4></section><section id="method.log1p-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.log1p-1" class="fnname">log1p</a>(x: f64) -&gt; f64</h4></section><section id="method.log2-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.log2-1" class="fnname">log2</a>(x: f64) -&gt; f64</h4></section><section id="method.log10-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.log10-1" class="fnname">log10</a>(x: f64) -&gt; f64</h4></section><section id="method.modf-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.modf-1" class="fnname">modf</a>(x: f64) -&gt; (f64, f64)</h4></section><section id="method.nextafter-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.nextafter-1" class="fnname">nextafter</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.pow-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.pow-1" class="fnname">pow</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.remainder-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.remainder-1" class="fnname">remainder</a>(x: f64, y: f64) -&gt; f64</h4></section><section id="method.remquo-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.remquo-1" class="fnname">remquo</a>(x: f64, y: f64) -&gt; (f64, i32)</h4></section><section id="method.rint-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.rint-1" class="fnname">rint</a>(x: f64) -&gt; f64</h4></section><section id="method.round-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.round-1" class="fnname">round</a>(x: f64) -&gt; f64</h4></section><section id="method.scalbn-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.scalbn-1" class="fnname">scalbn</a>(x: f64, n: i32) -&gt; f64</h4></section><section id="method.sin-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.sin-1" class="fnname">sin</a>(x: f64) -&gt; f64</h4></section><section id="method.sincos-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.sincos-1" class="fnname">sincos</a>(x: f64) -&gt; (f64, f64)</h4></section><section id="method.sinh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.sinh-1" class="fnname">sinh</a>(x: f64) -&gt; f64</h4></section><section id="method.sqrt-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.sqrt-1" class="fnname">sqrt</a>(x: f64) -&gt; f64</h4></section><section id="method.tan-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.tan-1" class="fnname">tan</a>(x: f64) -&gt; f64</h4></section><section id="method.tanh-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.tanh-1" class="fnname">tanh</a>(x: f64) -&gt; f64</h4></section><section id="method.tgamma-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.tgamma-1" class="fnname">tgamma</a>(x: f64) -&gt; f64</h4></section><section id="method.trunc-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.trunc-1" class="fnname">trunc</a>(x: f64) -&gt; f64</h4></section><section id="method.y0-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.y0-1" class="fnname">y0</a>(x: f64) -&gt; f64</h4></section><section id="method.y1-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.y1-1" class="fnname">y1</a>(x: f64) -&gt; f64</h4></section><section id="method.yn-1" class="method has-srclink"><a class="srclink rightside" href="../src/libm/libm_helper.rs.html#110-171">source</a><h4 class="code-header">pub fn <a href="#method.yn-1" class="fnname">yn</a>(n: i32, x: f64) -&gt; f64</h4></section></div></details></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"><section id="impl-RefUnwindSafe-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; RefUnwindSafe for <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: RefUnwindSafe,</span></h3></section><section id="impl-Send-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Send-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Send for <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Send,</span></h3></section><section id="impl-Sync-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Sync-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Sync for <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Sync,</span></h3></section><section id="impl-Unpin-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Unpin-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Unpin for <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: Unpin,</span></h3></section><section id="impl-UnwindSafe-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; UnwindSafe for <a class="struct" href="struct.Libm.html" title="struct libm::Libm">Libm</a>&lt;T&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: UnwindSafe,</span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Any-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Any for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a class="fnname">type_id</a>(&amp;self) -&gt; TypeId</h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Borrow%3CT%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; Borrow&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-BorrowMut%3CT%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; BorrowMut&lt;T&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?Sized,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a>Read more</a></div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-From%3CT%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T&gt; From&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-Into%3CU%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; Into&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: From&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code>[From]&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-TryFrom%3CU%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryFrom&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: Into&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = Infallible</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_from</a>(value: U) -&gt; Result&lt;T, &lt;T as TryFrom&lt;U&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Libm%3CT%3E" class="impl has-srclink"><a href="#impl-TryInto%3CU%3E-for-Libm%3CT%3E" class="anchor"></a><h3 class="code-header">impl&lt;T, U&gt; TryInto&lt;U&gt; for T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: TryFrom&lt;T&gt;,</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a class="associatedtype">Error</a> = &lt;U as TryFrom&lt;T&gt;&gt;::Error</h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="since rightside" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a class="fnname">try_into</a>(self) -&gt; Result&lt;U, &lt;U as TryFrom&lt;T&gt;&gt;::Error&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="libm" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>