This repository has been archived on 2022-04-04. You can view files and clone it, but cannot push or open issues or pull requests.

25 lines
32 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="Fused multiply-add. Computes `(self * a) + b` with only one rounding error, yielding a more accurate result than an unfused multiply-add."><meta name="keywords" content="rust, rustlang, rust-lang, MulAdd"><title>MulAdd in num_traits::ops::mul_add - 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" type="text/css" href="../../../normalize.css"><link rel="stylesheet" type="text/css" href="../../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../../storage.js"></script><script src="../../../crates.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 trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a class="sidebar-logo" href="../../../num_traits/index.html"><div class="logo-container"><img class="rust-logo" src="../../../rust-logo.png" alt="logo"></div>
</a><h2 class="location">Trait MulAdd</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#associated-types">Associated Types</a></h3><div class="sidebar-links"><a href="#associatedtype.Output">Output</a></div><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.mul_add">mul_add</a></div><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><div class="sidebar-links"><a href="#impl-MulAdd%3Cf32%2C%20f32%3E-for-f32">f32</a><a href="#impl-MulAdd%3Cf64%2C%20f64%3E-for-f64">f64</a><a href="#impl-MulAdd%3Ci128%2C%20i128%3E-for-i128">i128</a><a href="#impl-MulAdd%3Ci16%2C%20i16%3E-for-i16">i16</a><a href="#impl-MulAdd%3Ci32%2C%20i32%3E-for-i32">i32</a><a href="#impl-MulAdd%3Ci64%2C%20i64%3E-for-i64">i64</a><a href="#impl-MulAdd%3Ci8%2C%20i8%3E-for-i8">i8</a><a href="#impl-MulAdd%3Cisize%2C%20isize%3E-for-isize">isize</a><a href="#impl-MulAdd%3Cu128%2C%20u128%3E-for-u128">u128</a><a href="#impl-MulAdd%3Cu16%2C%20u16%3E-for-u16">u16</a><a href="#impl-MulAdd%3Cu32%2C%20u32%3E-for-u32">u32</a><a href="#impl-MulAdd%3Cu64%2C%20u64%3E-for-u64">u64</a><a href="#impl-MulAdd%3Cu8%2C%20u8%3E-for-u8">u8</a><a href="#impl-MulAdd%3Cusize%2C%20usize%3E-for-usize">usize</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="../../index.html">num_traits</a>::<wbr><a href="../index.html">ops</a>::<wbr><a href="index.html">mul_add</a></h2><div id="sidebar-vars" data-name="MulAdd" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../../num_traits/index.html"><img class="rust-logo" src="../../../rust-logo.png" alt="logo"></a><nav class="sub"><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="18" height="18" alt="Pick another theme!" src="../../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><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><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../../settings.html" title="settings"><img width="18" height="18" alt="Change settings" src="../../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="../../index.html">num_traits</a>::<wbr><a href="../index.html">ops</a>::<wbr><a href="index.html">mul_add</a>::<wbr><a class="trait" href="#">MulAdd</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></span><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/num_traits/ops/mul_add.rs.html#23-29" title="goto source code">[src]</a></span></h1><div class="docblock item-decl"><pre class="rust trait"><code>pub trait MulAdd&lt;A&nbsp;=&nbsp;Self, B&nbsp;=&nbsp;Self&gt; {
type <a href="#associatedtype.Output" class="associatedtype">Output</a>;
fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: A, b: B) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a>;
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><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>
<p>Note that <code>A</code> and <code>B</code> are <code>Self</code> by default, but this is not mandatory.</p>
<h2 id="example" class="section-header"><a href="#example">Example</a></h2>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">std::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="ident">abs_difference</span> <span class="op">&lt;</span><span class="op">=</span> <span class="number">100.0</span> <span class="op">*</span> <span class="ident">f32::EPSILON</span>);</code></pre></div>
</div></details><h2 id="associated-types" class="small-section-header">Associated Types<a href="#associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="associatedtype.Output" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#25" title="goto source code">[src]</a></div><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a></h4></div></summary><div class="docblock"><p>The resulting type after applying the fused multiply-add.</p>
</div></details></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.mul_add" class="method has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#28" title="goto source code">[src]</a></div><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: A, b: B) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></summary><div class="docblock"><p>Performs the fused multiply-add operation.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cf32%2C%20f32%3E-for-f32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#38-45" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cf32%2C%20f32%3E-for-f32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f32.html">f32</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-1" class="type trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#42-44" title="goto source code">[src]</a></div><a href="#method.mul_add" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cf64%2C%20f64%3E-for-f64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#48-55" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cf64%2C%20f64%3E-for-f64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.f64.html">f64</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-2" class="type trait-impl has-srclink"><a href="#associatedtype.Output-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-1" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#52-54" title="goto source code">[src]</a></div><a href="#method.mul_add-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cisize%2C%20isize%3E-for-isize" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cisize%2C%20isize%3E-for-isize" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.isize.html">isize</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.isize.html">isize</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.isize.html">isize</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-3" class="type trait-impl has-srclink"><a href="#associatedtype.Output-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-2" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cusize%2C%20usize%3E-for-usize" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cusize%2C%20usize%3E-for-usize" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.usize.html">usize</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-4" class="type trait-impl has-srclink"><a href="#associatedtype.Output-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-3" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Ci8%2C%20i8%3E-for-i8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Ci8%2C%20i8%3E-for-i8" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i8.html">i8</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i8.html">i8</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i8.html">i8</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-5" class="type trait-impl has-srclink"><a href="#associatedtype.Output-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-4" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cu8%2C%20u8%3E-for-u8" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cu8%2C%20u8%3E-for-u8" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u8.html">u8</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-6" class="type trait-impl has-srclink"><a href="#associatedtype.Output-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-5" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Ci16%2C%20i16%3E-for-i16" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Ci16%2C%20i16%3E-for-i16" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i16.html">i16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i16.html">i16</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i16.html">i16</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-7" class="type trait-impl has-srclink"><a href="#associatedtype.Output-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-6" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cu16%2C%20u16%3E-for-u16" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cu16%2C%20u16%3E-for-u16" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u16.html">u16</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u16.html">u16</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u16.html">u16</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-8" class="type trait-impl has-srclink"><a href="#associatedtype.Output-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-7" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Ci32%2C%20i32%3E-for-i32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Ci32%2C%20i32%3E-for-i32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i32.html">i32</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-9" class="type trait-impl has-srclink"><a href="#associatedtype.Output-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-8" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-8" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cu32%2C%20u32%3E-for-u32" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cu32%2C%20u32%3E-for-u32" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u32.html">u32</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u32.html">u32</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u32.html">u32</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-10" class="type trait-impl has-srclink"><a href="#associatedtype.Output-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-9" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-9" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Ci64%2C%20i64%3E-for-i64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Ci64%2C%20i64%3E-for-i64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i64.html">i64</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-11" class="type trait-impl has-srclink"><a href="#associatedtype.Output-11" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-10" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-10" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cu64%2C%20u64%3E-for-u64" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cu64%2C%20u64%3E-for-u64" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u64.html">u64</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-12" class="type trait-impl has-srclink"><a href="#associatedtype.Output-12" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-11" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#70" title="goto source code">[src]</a></div><a href="#method.mul_add-11" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Ci128%2C%20i128%3E-for-i128" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#72" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Ci128%2C%20i128%3E-for-i128" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i128.html">i128</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i128.html">i128</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.i128.html">i128</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-13" class="type trait-impl has-srclink"><a href="#associatedtype.Output-13" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-12" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#72" title="goto source code">[src]</a></div><a href="#method.mul_add-12" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-MulAdd%3Cu128%2C%20u128%3E-for-u128" class="impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#72" title="goto source code">[src]</a></div><a href="#impl-MulAdd%3Cu128%2C%20u128%3E-for-u128" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="trait.MulAdd.html" title="trait num_traits::ops::mul_add::MulAdd">MulAdd</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u128.html">u128</a>, <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u128.html">u128</a>&gt; for <a class="primitive" href="https://doc.rust-lang.org/1.59.0/std/primitive.u128.html">u128</a></h3></div></summary><div class="impl-items"><div id="associatedtype.Output-14" class="type trait-impl has-srclink"><a href="#associatedtype.Output-14" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Output" class="associatedtype">Output</a> = Self</h4></div><div id="method.mul_add-13" class="method trait-impl has-srclink"><div class="rightside"><a class="srclink" href="../../../src/num_traits/ops/mul_add.rs.html#72" title="goto source code">[src]</a></div><a href="#method.mul_add-13" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.mul_add" class="fnname">mul_add</a>(self, a: Self, b: Self) -&gt; Self::<a class="associatedtype" href="trait.MulAdd.html#associatedtype.Output" title="type num_traits::ops::mul_add::MulAdd::Output">Output</a></h4></div></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div class="item-list" id="implementors-list"></div><script type="text/javascript" src="../../../implementors/num_traits/ops/mul_add/trait.MulAdd.js" async></script></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../../" data-current-crate="num_traits" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.59.0 (9d1b2106e 2022-02-23)" ></div>
</body></html>