Initial docs commit

This commit is contained in:
Uttarayan Mondal
2021-03-15 01:27:34 +05:30
commit d5ecda4c73
20211 changed files with 1370362 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
<!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="List of all items in this crate"><meta name="keywords" content="rust, rustlang, rust-lang"><title>List of all items in this crate</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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate num_integer</p><div class="block version"><p>Version 0.1.44</p></div><a id="all-types" href="index.html"><p>Back to index</p></a></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">List of all items</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>
</span>
<span class="in-band">List of all items</span></h1><h3 id="Structs">Structs</h3><ul class="structs docblock"><li><a href="struct.ExtendedGcd.html">ExtendedGcd</a></li><li><a href="struct.IterBinomial.html">IterBinomial</a></li></ul><h3 id="Traits">Traits</h3><ul class="traits docblock"><li><a href="trait.Average.html">Average</a></li><li><a href="trait.Integer.html">Integer</a></li><li><a href="trait.Roots.html">Roots</a></li></ul><h3 id="Functions">Functions</h3><ul class="functions docblock"><li><a href="fn.average_ceil.html">average_ceil</a></li><li><a href="fn.average_floor.html">average_floor</a></li><li><a href="fn.binomial.html">binomial</a></li><li><a href="fn.cbrt.html">cbrt</a></li><li><a href="fn.div_ceil.html">div_ceil</a></li><li><a href="fn.div_floor.html">div_floor</a></li><li><a href="fn.div_mod_floor.html">div_mod_floor</a></li><li><a href="fn.div_rem.html">div_rem</a></li><li><a href="fn.gcd.html">gcd</a></li><li><a href="fn.gcd_lcm.html">gcd_lcm</a></li><li><a href="fn.lcm.html">lcm</a></li><li><a href="fn.mod_floor.html">mod_floor</a></li><li><a href="fn.multinomial.html">multinomial</a></li><li><a href="fn.nth_root.html">nth_root</a></li><li><a href="fn.sqrt.html">sqrt</a></li></ul></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/fn.average_ceil.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/fn.average_ceil.html">../../num_integer/fn.average_ceil.html</a>...</p>
<script>location.replace("../../num_integer/fn.average_ceil.html" + location.search + location.hash);</script>
</body>
</html>
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/fn.average_floor.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/fn.average_floor.html">../../num_integer/fn.average_floor.html</a>...</p>
<script>location.replace("../../num_integer/fn.average_floor.html" + location.search + location.hash);</script>
</body>
</html>
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/trait.Average.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/trait.Average.html">../../num_integer/trait.Average.html</a>...</p>
<script>location.replace("../../num_integer/trait.Average.html" + location.search + location.hash);</script>
</body>
</html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Returns the ceiling value of the average of `x` and `y` see Average::average_ceil."><meta name="keywords" content="rust, rustlang, rust-lang, average_ceil"><title>num_integer::average_ceil - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="average_ceil" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">average_ceil</a></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_integer/average.rs.html#76-78" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn average_ceil&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Average.html" title="trait num_integer::Average">Average</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Returns the ceiling value of the average of <code>x</code> and <code>y</code>
see <a href="trait.Average.html#tymethod.average_ceil">Average::average_ceil</a>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Returns the floor value of the average of `x` and `y` see Average::average_floor."><meta name="keywords" content="rust, rustlang, rust-lang, average_floor"><title>num_integer::average_floor - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="average_floor" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">average_floor</a></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_integer/average.rs.html#70-72" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn average_floor&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Average.html" title="trait num_integer::Average">Average</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Returns the floor value of the average of <code>x</code> and <code>y</code>
see <a href="trait.Average.html#tymethod.average_floor">Average::average_floor</a>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+20
View File
@@ -0,0 +1,20 @@
<!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="Calculate the binomial coefficient."><meta name="keywords" content="rust, rustlang, rust-lang, binomial"><title>num_integer::binomial - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="binomial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">binomial</a></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_integer/lib.rs.html#1105-1124" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn binomial&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt;(n: T, k: T) -&gt; T</pre><div class="docblock"><p>Calculate the binomial coefficient.</p>
<p>Note that this might overflow, depending on <code>T</code>. For the primitive integer
types, the following n are the largest ones possible such that there will
be no overflow for any k:</p>
<table><thead><tr><th>type</th><th>n</th></tr></thead><tbody>
<tr><td>u8</td><td>10</td></tr>
<tr><td>i8</td><td>9</td></tr>
<tr><td>u16</td><td>18</td></tr>
<tr><td>i16</td><td>17</td></tr>
<tr><td>u32</td><td>34</td></tr>
<tr><td>i32</td><td>33</td></tr>
<tr><td>u64</td><td>67</td></tr>
<tr><td>i64</td><td>66</td></tr>
</tbody></table>
<p>For larger n, consider using a bigint type for <code>T</code>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Returns the truncated principal cube root of an integer see Roots::cbrt."><meta name="keywords" content="rust, rustlang, rust-lang, cbrt"><title>num_integer::cbrt - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="cbrt" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">cbrt</a></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_integer/roots.rs.html#123-125" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn cbrt&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Roots.html" title="trait num_integer::Roots">Roots</a>&gt;(x: T) -&gt; T</pre><div class="docblock"><p>Returns the truncated principal cube root of an integer
see <a href="trait.Roots.html#method.cbrt">Roots::cbrt</a>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Ceiled integer division"><meta name="keywords" content="rust, rustlang, rust-lang, div_ceil"><title>num_integer::div_ceil - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="div_ceil" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">div_ceil</a></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_integer/lib.rs.html#384-386" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn div_ceil&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Ceiled integer division</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Floored integer division"><meta name="keywords" content="rust, rustlang, rust-lang, div_floor"><title>num_integer::div_floor - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="div_floor" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">div_floor</a></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_integer/lib.rs.html#369-371" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn div_floor&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Floored integer division</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Simultaneous floored integer division and modulus"><meta name="keywords" content="rust, rustlang, rust-lang, div_mod_floor"><title>num_integer::div_mod_floor - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="div_mod_floor" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">div_mod_floor</a></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_integer/lib.rs.html#379-381" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn div_mod_floor&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; (T, T)</pre><div class="docblock"><p>Simultaneous floored integer division and modulus</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Simultaneous integer division and modulus"><meta name="keywords" content="rust, rustlang, rust-lang, div_rem"><title>num_integer::div_rem - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="div_rem" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">div_rem</a></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_integer/lib.rs.html#364-366" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn div_rem&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; (T, T)</pre><div class="docblock"><p>Simultaneous integer division and modulus</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Calculates the Greatest Common Divisor (GCD) of the number and `other`. The result is always positive."><meta name="keywords" content="rust, rustlang, rust-lang, gcd"><title>num_integer::gcd - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="gcd" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">gcd</a></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_integer/lib.rs.html#391-393" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn gcd&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code>. The
result is always positive.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Calculates the Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) of the number and `other`."><meta name="keywords" content="rust, rustlang, rust-lang, gcd_lcm"><title>num_integer::gcd_lcm - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="gcd_lcm" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">gcd_lcm</a></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_integer/lib.rs.html#403-405" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn gcd_lcm&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; (T, T)</pre><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Calculates the Lowest Common Multiple (LCM) of the number and `other`."><meta name="keywords" content="rust, rustlang, rust-lang, lcm"><title>num_integer::lcm - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="lcm" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">lcm</a></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_integer/lib.rs.html#396-398" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn lcm&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Floored integer modulus"><meta name="keywords" content="rust, rustlang, rust-lang, mod_floor"><title>num_integer::mod_floor - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="mod_floor" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">mod_floor</a></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_integer/lib.rs.html#374-376" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn mod_floor&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>&gt;(x: T, y: T) -&gt; T</pre><div class="docblock"><p>Floored integer modulus</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+6
View File
@@ -0,0 +1,6 @@
<!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="Calculate the multinomial coefficient."><meta name="keywords" content="rust, rustlang, rust-lang, multinomial"><title>num_integer::multinomial - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="multinomial" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">multinomial</a></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_integer/lib.rs.html#1127-1138" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn multinomial&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt;(k: &amp;[T]) -&gt; T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/arith/trait.Add.html" title="trait core::ops::arith::Add">Add</a>&lt;&amp;'a T, Output = T&gt;,&nbsp;</span></pre><div class="docblock"><p>Calculate the multinomial coefficient.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Returns the truncated principal `n`th root of an integer see Roots::nth_root."><meta name="keywords" content="rust, rustlang, rust-lang, nth_root"><title>num_integer::nth_root - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="nth_root" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">nth_root</a></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_integer/roots.rs.html#130-132" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn nth_root&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Roots.html" title="trait num_integer::Roots">Roots</a>&gt;(x: T, n: u32) -&gt; T</pre><div class="docblock"><p>Returns the truncated principal <code>n</code>th root of an integer
see <a href="trait.Roots.html#tymethod.nth_root">Roots::nth_root</a>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+7
View File
@@ -0,0 +1,7 @@
<!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="Returns the truncated principal square root of an integer see Roots::sqrt."><meta name="keywords" content="rust, rustlang, rust-lang, sqrt"><title>num_integer::sqrt - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc fn"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><div class="sidebar-elems"><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="sqrt" data-ty="fn" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Function <a href="index.html">num_integer</a>::<wbr><a class="fn" href="">sqrt</a></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_integer/roots.rs.html#116-118" title="goto source code">[src]</a></span></h1><pre class="rust fn">pub fn sqrt&lt;T:&nbsp;<a class="trait" href="../num_integer/trait.Roots.html" title="trait num_integer::Roots">Roots</a>&gt;(x: T) -&gt; T</pre><div class="docblock"><p>Returns the truncated principal square root of an integer
see <a href="trait.Roots.html#method.sqrt">Roots::sqrt</a>.</p>
</div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+38
View File
@@ -0,0 +1,38 @@
<!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="Integer trait and functions."><meta name="keywords" content="rust, rustlang, rust-lang, num_integer"><title>num_integer - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc mod"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Crate num_integer</p><div class="block version"><p>Version 0.1.44</p></div><div class="sidebar-elems"><a id="all-types" href="all.html"><p>See all num_integer's items</p></a><div class="block items"><ul><li><a href="#structs">Structs</a></li><li><a href="#traits">Traits</a></li><li><a href="#functions">Functions</a></li></ul></div><p class="location"></p><div id="sidebar-vars" data-name="num_integer" data-ty="mod" data-relpath="../"></div></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Crate <a class="mod" href="">num_integer</a></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_integer/lib.rs.html#11-1343" title="goto source code">[src]</a></span></h1><div class="docblock"><p>Integer trait and functions.</p>
<h2 id="compatibility" class="section-header"><a href="#compatibility">Compatibility</a></h2>
<p>The <code>num-integer</code> crate is tested for rustc 1.8 and greater.</p>
</div><h2 id="structs" class="section-header"><a href="#structs">Structs</a></h2>
<table><tr class="module-item"><td><a class="struct" href="struct.ExtendedGcd.html" title="num_integer::ExtendedGcd struct">ExtendedGcd</a></td><td class="docblock-short"><p>Greatest common divisor and Bézout coefficients</p>
</td></tr><tr class="module-item"><td><a class="struct" href="struct.IterBinomial.html" title="num_integer::IterBinomial struct">IterBinomial</a></td><td class="docblock-short"><p>An iterator over binomial coefficients.</p>
</td></tr></table><h2 id="traits" class="section-header"><a href="#traits">Traits</a></h2>
<table><tr class="module-item"><td><a class="trait" href="trait.Average.html" title="num_integer::Average trait">Average</a></td><td class="docblock-short"><p>Provides methods to compute the average of two integers, without overflows.</p>
</td></tr><tr class="module-item"><td><a class="trait" href="trait.Integer.html" title="num_integer::Integer trait">Integer</a></td><td class="docblock-short"></td></tr><tr class="module-item"><td><a class="trait" href="trait.Roots.html" title="num_integer::Roots trait">Roots</a></td><td class="docblock-short"><p>Provides methods to compute an integers square root, cube root,
and arbitrary <code>n</code>th root.</p>
</td></tr></table><h2 id="functions" class="section-header"><a href="#functions">Functions</a></h2>
<table><tr class="module-item"><td><a class="fn" href="fn.average_ceil.html" title="num_integer::average_ceil fn">average_ceil</a></td><td class="docblock-short"><p>Returns the ceiling value of the average of <code>x</code> and <code>y</code>
see <a href="trait.Average.html#tymethod.average_ceil">Average::average_ceil</a>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.average_floor.html" title="num_integer::average_floor fn">average_floor</a></td><td class="docblock-short"><p>Returns the floor value of the average of <code>x</code> and <code>y</code>
see <a href="trait.Average.html#tymethod.average_floor">Average::average_floor</a>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.binomial.html" title="num_integer::binomial fn">binomial</a></td><td class="docblock-short"><p>Calculate the binomial coefficient.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.cbrt.html" title="num_integer::cbrt fn">cbrt</a></td><td class="docblock-short"><p>Returns the truncated principal cube root of an integer
see <a href="trait.Roots.html#method.cbrt">Roots::cbrt</a>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.div_ceil.html" title="num_integer::div_ceil fn">div_ceil</a></td><td class="docblock-short"><p>Ceiled integer division</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.div_floor.html" title="num_integer::div_floor fn">div_floor</a></td><td class="docblock-short"><p>Floored integer division</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.div_mod_floor.html" title="num_integer::div_mod_floor fn">div_mod_floor</a></td><td class="docblock-short"><p>Simultaneous floored integer division and modulus</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.div_rem.html" title="num_integer::div_rem fn">div_rem</a></td><td class="docblock-short"><p>Simultaneous integer division and modulus</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.gcd.html" title="num_integer::gcd fn">gcd</a></td><td class="docblock-short"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code>. The
result is always positive.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.gcd_lcm.html" title="num_integer::gcd_lcm fn">gcd_lcm</a></td><td class="docblock-short"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.lcm.html" title="num_integer::lcm fn">lcm</a></td><td class="docblock-short"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.mod_floor.html" title="num_integer::mod_floor fn">mod_floor</a></td><td class="docblock-short"><p>Floored integer modulus</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.multinomial.html" title="num_integer::multinomial fn">multinomial</a></td><td class="docblock-short"><p>Calculate the multinomial coefficient.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.nth_root.html" title="num_integer::nth_root fn">nth_root</a></td><td class="docblock-short"><p>Returns the truncated principal <code>n</code>th root of an integer
see <a href="trait.Roots.html#tymethod.nth_root">Roots::nth_root</a>.</p>
</td></tr><tr class="module-item"><td><a class="fn" href="fn.sqrt.html" title="num_integer::sqrt fn">sqrt</a></td><td class="docblock-short"><p>Returns the truncated principal square root of an integer
see <a href="trait.Roots.html#method.sqrt">Roots::sqrt</a>.</p>
</td></tr></table></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/fn.cbrt.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/fn.cbrt.html">../../num_integer/fn.cbrt.html</a>...</p>
<script>location.replace("../../num_integer/fn.cbrt.html" + location.search + location.hash);</script>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/fn.nth_root.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/fn.nth_root.html">../../num_integer/fn.nth_root.html</a>...</p>
<script>location.replace("../../num_integer/fn.nth_root.html" + location.search + location.hash);</script>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/fn.sqrt.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/fn.sqrt.html">../../num_integer/fn.sqrt.html</a>...</p>
<script>location.replace("../../num_integer/fn.sqrt.html" + location.search + location.hash);</script>
</body>
</html>
+10
View File
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="refresh" content="0;URL=../../num_integer/trait.Roots.html">
</head>
<body>
<p>Redirecting to <a href="../../num_integer/trait.Roots.html">../../num_integer/trait.Roots.html</a>...</p>
<script>location.replace("../../num_integer/trait.Roots.html" + location.search + location.hash);</script>
</body>
</html>
+1
View File
@@ -0,0 +1 @@
initSidebarItems({"fn":[["average_ceil","Returns the ceiling value of the average of `x` and `y` see Average::average_ceil."],["average_floor","Returns the floor value of the average of `x` and `y` see Average::average_floor."],["binomial","Calculate the binomial coefficient."],["cbrt","Returns the truncated principal cube root of an integer see Roots::cbrt."],["div_ceil","Ceiled integer division"],["div_floor","Floored integer division"],["div_mod_floor","Simultaneous floored integer division and modulus"],["div_rem","Simultaneous integer division and modulus"],["gcd","Calculates the Greatest Common Divisor (GCD) of the number and `other`. The result is always positive."],["gcd_lcm","Calculates the Greatest Common Divisor (GCD) and Lowest Common Multiple (LCM) of the number and `other`."],["lcm","Calculates the Lowest Common Multiple (LCM) of the number and `other`."],["mod_floor","Floored integer modulus"],["multinomial","Calculate the multinomial coefficient."],["nth_root","Returns the truncated principal `n`th root of an integer see Roots::nth_root."],["sqrt","Returns the truncated principal square root of an integer see Roots::sqrt."]],"struct":[["ExtendedGcd","Greatest common divisor and Bézout coefficients"],["IterBinomial","An iterator over binomial coefficients."]],"trait":[["Average","Provides methods to compute the average of two integers, without overflows."],["Integer",""],["Roots","Provides methods to compute an integers square root, cube root, and arbitrary `n`th root."]]});
+30
View File
@@ -0,0 +1,30 @@
<!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="Greatest common divisor and Bézout coefficients"><meta name="keywords" content="rust, rustlang, rust-lang, ExtendedGcd"><title>num_integer::ExtendedGcd - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Struct ExtendedGcd</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#fields">Fields</a><div class="sidebar-links"><a href="#structfield.gcd">gcd</a><a href="#structfield.x">x</a><a href="#structfield.y">y</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Clone">Clone</a><a href="#impl-Copy">Copy</a><a href="#impl-Debug">Debug</a><a href="#impl-Eq">Eq</a><a href="#impl-PartialEq%3CExtendedGcd%3CA%3E%3E">PartialEq&lt;ExtendedGcd&lt;A&gt;&gt;</a><a href="#impl-StructuralEq">StructuralEq</a><a href="#impl-StructuralPartialEq">StructuralPartialEq</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="ExtendedGcd" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">num_integer</a>::<wbr><a class="struct" href="">ExtendedGcd</a></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_integer/lib.rs.html#355-360" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct ExtendedGcd&lt;A&gt; {
pub gcd: A,
pub x: A,
pub y: A,
// some fields omitted
}</pre></div><div class="docblock"><p>Greatest common divisor and Bézout coefficients</p>
<pre><code class="language-no_build">let e = isize::extended_gcd(a, b);
assert_eq!(e.gcd, e.x*a + e.y*b);
</code></pre>
</div><h2 id="fields" class="fields small-section-header">
Fields<a href="#fields" class="anchor"></a></h2><span id="structfield.gcd" class="structfield small-section-header"><a href="#structfield.gcd" class="anchor field"></a><code>gcd: A</code></span><span id="structfield.x" class="structfield small-section-header"><a href="#structfield.x" class="anchor field"></a><code>x: A</code></span><span id="structfield.y" class="structfield small-section-header"><a href="#structfield.y" class="anchor field"></a><code>y: A</code></span><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Clone" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-Clone" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.clone" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div><h4 id="method.clone_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: &amp;Self)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/clone.rs.html#128" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></div><h3 id="impl-Copy" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-Copy" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-Debug" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html" title="trait core::fmt::Debug">Debug</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-Debug" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.fmt" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt" class="fnname">fmt</a>(&amp;self, f: &amp;mut <a class="struct" href="https://doc.rust-lang.org/nightly/core/fmt/struct.Formatter.html" title="struct core::fmt::Formatter">Formatter</a>&lt;'_&gt;) -&gt; <a class="type" href="https://doc.rust-lang.org/nightly/core/fmt/type.Result.html" title="type core::fmt::Result">Result</a></code><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Formats the value using the given formatter. <a href="https://doc.rust-lang.org/nightly/core/fmt/trait.Debug.html#tymethod.fmt">Read more</a></p>
</div></div><h3 id="impl-Eq" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-Eq" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-PartialEq%3CExtendedGcd%3CA%3E%3E" class="impl"><code class="in-band">impl&lt;A:&nbsp;<a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;&gt; for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-PartialEq%3CExtendedGcd%3CA%3E%3E" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.eq" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq" class="fnname">eq</a>(&amp;self, other: &amp;<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>self</code> and <code>other</code> values to be equal, and is used
by <code>==</code>. <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#tymethod.eq">Read more</a></p>
</div><h4 id="method.ne" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html#method.ne" class="fnname">ne</a>(&amp;self, other: &amp;<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>This method tests for <code>!=</code>.</p>
</div></div><h3 id="impl-StructuralEq" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralEq.html" title="trait core::marker::StructuralEq">StructuralEq</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-StructuralEq" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"></div><h3 id="impl-StructuralPartialEq" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.StructuralPartialEq.html" title="trait core::marker::StructuralPartialEq">StructuralPartialEq</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt;</code><a href="#impl-StructuralPartialEq" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#354" title="goto source code">[src]</a></h3><div class="impl-items"></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl&lt;A&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;A&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;A: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+149
View File
@@ -0,0 +1,149 @@
<!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="An iterator over binomial coefficients."><meta name="keywords" content="rust, rustlang, rust-lang, IterBinomial"><title>num_integer::IterBinomial - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc struct"><!--[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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Struct IterBinomial</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#implementations">Methods</a><div class="sidebar-links"><a href="#method.new">new</a></div><a class="sidebar-title" href="#trait-implementations">Trait Implementations</a><div class="sidebar-links"><a href="#impl-Iterator">Iterator</a></div><a class="sidebar-title" href="#synthetic-implementations">Auto Trait Implementations</a><div class="sidebar-links"><a href="#impl-Send">Send</a><a href="#impl-Sync">Sync</a><a href="#impl-Unpin">Unpin</a></div><a class="sidebar-title" href="#blanket-implementations">Blanket Implementations</a><div class="sidebar-links"><a href="#impl-Any">Any</a><a href="#impl-Borrow%3CT%3E">Borrow&lt;T&gt;</a><a href="#impl-BorrowMut%3CT%3E">BorrowMut&lt;T&gt;</a><a href="#impl-From%3CT%3E">From&lt;T&gt;</a><a href="#impl-Into%3CU%3E">Into&lt;U&gt;</a><a href="#impl-IntoIterator">IntoIterator</a><a href="#impl-TryFrom%3CU%3E">TryFrom&lt;U&gt;</a><a href="#impl-TryInto%3CU%3E">TryInto&lt;U&gt;</a></div></div><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="IterBinomial" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">num_integer</a>::<wbr><a class="struct" href="">IterBinomial</a></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_integer/lib.rs.html#1017-1021" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust struct">pub struct IterBinomial&lt;T&gt; { /* fields omitted */ }</pre></div><div class="docblock"><p>An iterator over binomial coefficients.</p>
</div><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><h3 id="impl" class="impl"><code class="in-band">impl&lt;T&gt; <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a>,&nbsp;</span></code><a href="#impl" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1023-1052" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.new" class="method"><code>pub fn <a href="#method.new" class="fnname">new</a>(n: T) -&gt; <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><div class="notable-traits-tooltiptext"><span class="docblock"><h3 class="notable">Notable traits for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt;</h3><code class="content"><span class="where fmt-newline">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T;</span></code></span></div></span></span></code><a class="srclink" href="../src/num_integer/lib.rs.html#1045-1051" title="goto source code">[src]</a></h4><div class="docblock"><p>For a given n, iterate over all binomial coefficients binomial(n, k), for k=0…n.</p>
<p>Note that this might overflow, depending on <code>T</code>. For the primitive
integer types, the following n are the largest ones for which there will
be no overflow:</p>
<table><thead><tr><th>type</th><th>n</th></tr></thead><tbody>
<tr><td>u8</td><td>10</td></tr>
<tr><td>i8</td><td>9</td></tr>
<tr><td>u16</td><td>18</td></tr>
<tr><td>i16</td><td>17</td></tr>
<tr><td>u32</td><td>34</td></tr>
<tr><td>i32</td><td>33</td></tr>
<tr><td>u64</td><td>67</td></tr>
<tr><td>i64</td><td>66</td></tr>
</tbody></table>
<p>For larger n, <code>T</code> should be a bigint type.</p>
</div></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><h3 id="impl-Iterator" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a href="#impl-Iterator" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1054-1076" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="type">Item</a> = T</code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="method.next" class="method hidden"><code>fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next" class="fnname">next</a>(&amp;mut self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code><a class="srclink" href="../src/num_integer/lib.rs.html#1060-1075" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Advances the iterator and returns the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#tymethod.next">Read more</a></p>
</div><h4 id="method.size_hint" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint" class="fnname">size_hint</a>(&amp;self) -&gt; (usize, <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;usize&gt;)</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#204" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the bounds on the remaining length of the iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.size_hint">Read more</a></p>
</div><h4 id="method.count" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.count" class="fnname">count</a>(self) -&gt; usize</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#241-243" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Consumes the iterator, counting the number of iterations and returning it. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.count">Read more</a></p>
</div><h4 id="method.last" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.last" class="fnname">last</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#271-273" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Consumes the iterator, returning the last element. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.last">Read more</a></p>
</div><h4 id="method.advance_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.advance_by" class="fnname">advance_by</a>(&amp;mut self, n: usize) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;(), usize&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#314" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_advance_by</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Advances the iterator by <code>n</code> elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.advance_by">Read more</a></p>
</div><h4 id="method.nth" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.nth" class="fnname">nth</a>(&amp;mut self, n: usize) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#362" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the <code>n</code>th element of the iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.nth">Read more</a></p>
</div><h4 id="method.step_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.step_by" class="fnname">step_by</a>(self, step: usize) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/step_by/struct.StepBy.html" title="struct core::iter::adapters::step_by::StepBy">StepBy</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.28.0">1.28.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#413-415" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator starting at the same point, but stepping by
the given amount at each iteration. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.step_by">Read more</a></p>
</div><h4 id="method.chain" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.chain" class="fnname">chain</a>&lt;U&gt;(self, other: U) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/chain/struct.Chain.html" title="struct core::iter::adapters::chain::Chain">Chain</a>&lt;Self, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#484-487" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Takes two iterators and creates a new iterator over both in sequence. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.chain">Read more</a></p>
</div><h4 id="method.zip" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.zip" class="fnname">zip</a>&lt;U&gt;(self, other: U) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/zip/struct.Zip.html" title="struct core::iter::adapters::zip::Zip">Zip</a>&lt;Self, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#560-563" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Zips up two iterators into a single iterator of pairs. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.zip">Read more</a></p>
</div><h4 id="method.intersperse" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.intersperse" class="fnname">intersperse</a>(self, separator: Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/intersperse/struct.Intersperse.html" title="struct core::iter::adapters::intersperse::Intersperse">Intersperse</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#602-605" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_intersperse</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Creates a new iterator which places a copy of <code>separator</code> between adjacent
items of the original iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.intersperse">Read more</a></p>
</div><h4 id="method.intersperse_with" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with" class="fnname">intersperse_with</a>&lt;G&gt;(self, separator: G) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/intersperse/struct.IntersperseWith.html" title="struct core::iter::adapters::intersperse::IntersperseWith">IntersperseWith</a>&lt;Self, G&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;G: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>() -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#660-663" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_intersperse</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Creates a new iterator which places an item generated by <code>separator</code>
between adjacent items of the original iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.intersperse_with">Read more</a></p>
</div><h4 id="method.map" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.map" class="fnname">map</a>&lt;B, F&gt;(self, f: F) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/map/struct.Map.html" title="struct core::iter::adapters::map::Map">Map</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; B,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#719-722" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Takes a closure and creates an iterator which calls that closure on each
element. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.map">Read more</a></p>
</div><h4 id="method.for_each" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.for_each" class="fnname">for_each</a>&lt;F&gt;(self, f: F) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>),&nbsp;</span></code><span class="since" title="Stable since Rust version 1.21.0">1.21.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#764-767" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Calls a closure on each element of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.for_each">Read more</a></p>
</div><h4 id="method.filter" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.filter" class="fnname">filter</a>&lt;P&gt;(self, predicate: P) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/filter/struct.Filter.html" title="struct core::iter::adapters::filter::Filter">Filter</a>&lt;Self, P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#839-842" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which uses a closure to determine if an element
should be yielded. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.filter">Read more</a></p>
</div><h4 id="method.filter_map" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.filter_map" class="fnname">filter_map</a>&lt;B, F&gt;(self, f: F) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/filter_map/struct.FilterMap.html" title="struct core::iter::adapters::filter_map::FilterMap">FilterMap</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#884-887" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that both filters and maps. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.filter_map">Read more</a></p>
</div><h4 id="method.enumerate" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.enumerate" class="fnname">enumerate</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/enumerate/struct.Enumerate.html" title="struct core::iter::adapters::enumerate::Enumerate">Enumerate</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#931-933" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which gives the current iteration count as well as
the next value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.enumerate">Read more</a></p>
</div><h4 id="method.peekable" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.peekable" class="fnname">peekable</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/peekable/struct.Peekable.html" title="struct core::iter::adapters::peekable::Peekable">Peekable</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#980-982" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which can use <a href="https://doc.rust-lang.org/nightly/core/iter/adapters/peekable/struct.Peekable.html#method.peek"><code>peek</code></a> to look at the next element of
the iterator without consuming it. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.peekable">Read more</a></p>
</div><h4 id="method.skip_while" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.skip_while" class="fnname">skip_while</a>&lt;P&gt;(self, predicate: P) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/skip_while/struct.SkipWhile.html" title="struct core::iter::adapters::skip_while::SkipWhile">SkipWhile</a>&lt;Self, P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1044-1047" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.skip"><code>skip</code></a>s elements based on a predicate. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.skip_while">Read more</a></p>
</div><h4 id="method.take_while" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.take_while" class="fnname">take_while</a>&lt;P&gt;(self, predicate: P) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/take_while/struct.TakeWhile.html" title="struct core::iter::adapters::take_while::TakeWhile">TakeWhile</a>&lt;Self, P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1125-1128" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that yields elements based on a predicate. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.take_while">Read more</a></p>
</div><h4 id="method.map_while" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.map_while" class="fnname">map_while</a>&lt;B, P&gt;(self, predicate: P) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/map_while/struct.MapWhile.html" title="struct core::iter::adapters::map_while::MapWhile">MapWhile</a>&lt;Self, P&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt;,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1220-1223" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_map_while</code>)</summary><p>recently added</p>
</details></div></div><div class='docblock hidden'><p>Creates an iterator that both yields elements based on a predicate and maps. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.map_while">Read more</a></p>
</div><h4 id="method.skip" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.skip" class="fnname">skip</a>(self, n: usize) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/skip/struct.Skip.html" title="struct core::iter::adapters::skip::Skip">Skip</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1247-1249" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that skips the first <code>n</code> elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.skip">Read more</a></p>
</div><h4 id="method.take" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.take" class="fnname">take</a>(self, n: usize) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/take/struct.Take.html" title="struct core::iter::adapters::take::Take">Take</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1293-1295" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that yields its first <code>n</code> elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.take">Read more</a></p>
</div><h4 id="method.scan" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.scan" class="fnname">scan</a>&lt;St, B, F&gt;(self, initial_state: St, f: F) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/scan/struct.Scan.html" title="struct core::iter::adapters::scan::Scan">Scan</a>&lt;Self, St, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;mut St, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1337-1340" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>An iterator adaptor similar to <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.fold"><code>fold</code></a> that holds internal state and
produces a new iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.scan">Read more</a></p>
</div><h4 id="method.flat_map" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.flat_map" class="fnname">flat_map</a>&lt;U, F&gt;(self, f: F) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/flatten/struct.FlatMap.html" title="struct core::iter::adapters::flatten::FlatMap">FlatMap</a>&lt;Self, U, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; U,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1377-1381" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that works like map, but flattens nested structure. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.flat_map">Read more</a></p>
</div><h4 id="method.flatten" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.flatten" class="fnname">flatten</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/flatten/struct.Flatten.html" title="struct core::iter::adapters::flatten::Flatten">Flatten</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.29.0">1.29.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1449-1452" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator that flattens nested structure. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.flatten">Read more</a></p>
</div><h4 id="method.fuse" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.fuse" class="fnname">fuse</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/fuse/struct.Fuse.html" title="struct core::iter::adapters::fuse::Fuse">Fuse</a>&lt;Self&gt;</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1512-1514" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which ends after the first <a href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html#variant.None" title="None"><code>None</code></a>. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.fuse">Read more</a></p>
</div><h4 id="method.inspect" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.inspect" class="fnname">inspect</a>&lt;F&gt;(self, f: F) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/inspect/struct.Inspect.html" title="struct core::iter::adapters::inspect::Inspect">Inspect</a>&lt;Self, F&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>),&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1596-1599" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Does something with each element of an iterator, passing the value on. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.inspect">Read more</a></p>
</div><h4 id="method.by_ref" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.by_ref" class="fnname">by_ref</a>(&amp;mut self) -&gt; &amp;mut Self</code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1641-1643" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Borrows an iterator, rather than consuming it. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.by_ref">Read more</a></p>
</div><h4 id="method.collect" class="method hidden"><code><span class="docblock attributes">#[must_use =
"if you really need to exhaust the iterator, consider `.for_each(drop)` instead"]</span>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.collect" class="fnname">collect</a>&lt;B&gt;(self) -&gt; B <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html" title="trait core::iter::traits::collect::FromIterator">FromIterator</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1759-1761" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Transforms an iterator into a collection. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.collect">Read more</a></p>
</div><h4 id="method.partition" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partition" class="fnname">partition</a>&lt;B, F&gt;(self, f: F) -&gt; (B, B) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1792-1796" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Consumes an iterator, creating two collections from it. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partition">Read more</a></p>
</div><h4 id="method.partition_in_place" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place" class="fnname">partition_in_place</a>&lt;'a, T, P&gt;(self, predicate: P) -&gt; usize <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>&lt;Item = &amp;'a mut T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a,<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;T) -&gt; bool,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1847-1850" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_partition_in_place</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Reorders the elements of this iterator <em>in-place</em> according to the given predicate,
such that all those that return <code>true</code> precede all those that return <code>false</code>.
Returns the number of <code>true</code> elements found. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partition_in_place">Read more</a></p>
</div><h4 id="method.is_partitioned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned" class="fnname">is_partitioned</a>&lt;P&gt;(self, predicate: P) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1904-1907" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_is_partitioned</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Checks if the elements of this iterator are partitioned according to the given predicate,
such that all those that return <code>true</code> precede all those that return <code>false</code>. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_partitioned">Read more</a></p>
</div><h4 id="method.try_fold" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_fold" class="fnname">try_fold</a>&lt;B, F, R&gt;(&amp;mut self, init: B, f: F) -&gt; R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; R,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/try/trait.Try.html" title="trait core::ops::try::Try">Try</a>&lt;Ok = B&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.27.0">1.27.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#1973-1977" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>An iterator method that applies a function as long as it returns
successfully, producing a single, final value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_fold">Read more</a></p>
</div><h4 id="method.try_for_each" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each" class="fnname">try_for_each</a>&lt;F, R&gt;(&amp;mut self, f: F) -&gt; R <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; R,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/try/trait.Try.html" title="trait core::ops::try::Try">Try</a>&lt;Ok = ()&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.27.0">1.27.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2015-2019" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>An iterator method that applies a fallible function to each item in the
iterator, stopping at the first error and returning that error. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_for_each">Read more</a></p>
</div><h4 id="method.fold" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.fold" class="fnname">fold</a>&lt;B, F&gt;(self, init: B, f: F) -&gt; B <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(B, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; B,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2115-2118" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Folds every element into an accumulator by applying an operation,
returning the final result. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.fold">Read more</a></p>
</div><h4 id="method.reduce" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.reduce" class="fnname">reduce</a>&lt;F&gt;(self, f: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.51.0">1.51.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2160-2163" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Reduces the elements to a single one, by repeatedly applying a reducing
operation. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.reduce">Read more</a></p>
</div><h4 id="method.all" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.all" class="fnname">all</a>&lt;F&gt;(&amp;mut self, f: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2209-2212" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Tests if every element of the iterator matches a predicate. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.all">Read more</a></p>
</div><h4 id="method.any" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.any" class="fnname">any</a>&lt;F&gt;(&amp;mut self, f: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2262-2265" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Tests if any element of the iterator matches a predicate. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.any">Read more</a></p>
</div><h4 id="method.find" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.find" class="fnname">find</a>&lt;P&gt;(&amp;mut self, predicate: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2322-2325" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Searches for an element of an iterator that satisfies a predicate. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.find">Read more</a></p>
</div><h4 id="method.find_map" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.find_map" class="fnname">find_map</a>&lt;B, F&gt;(&amp;mut self, f: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;B&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.30.0">1.30.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2353-2356" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Applies function to the elements of iterator and returns
the first non-none result. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.find_map">Read more</a></p>
</div><h4 id="method.try_find" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_find" class="fnname">try_find</a>&lt;F, R&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self, <br>&nbsp;&nbsp;&nbsp;&nbsp;f: F<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;, &lt;R as <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/try/trait.Try.html" title="trait core::ops::try::Try">Try</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/ops/try/trait.Try.html#associatedtype.Error" title="type core::ops::try::Try::Error">Error</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; R,<br>&nbsp;&nbsp;&nbsp;&nbsp;R: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/try/trait.Try.html" title="trait core::ops::try::Try">Try</a>&lt;Ok = bool&gt;,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2391-2395" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>try_find</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Applies function to the elements of iterator and returns
the first true result or the first error. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.try_find">Read more</a></p>
</div><h4 id="method.position" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.position" class="fnname">position</a>&lt;P&gt;(&amp;mut self, predicate: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;usize&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2467-2470" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Searches for an element in an iterator, returning its index. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.position">Read more</a></p>
</div><h4 id="method.rposition" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.rposition" class="fnname">rposition</a>&lt;P&gt;(&amp;mut self, predicate: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;usize&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/exact_size/trait.ExactSizeIterator.html" title="trait core::iter::traits::exact_size::ExactSizeIterator">ExactSizeIterator</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; bool,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2524-2527" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Searches for an element in an iterator from the right, returning its
index. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.rposition">Read more</a></p>
</div><h4 id="method.max" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max" class="fnname">max</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2563-2566" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the maximum element of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max">Read more</a></p>
</div><h4 id="method.min" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min" class="fnname">min</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2589-2592" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the minimum element of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min">Read more</a></p>
</div><h4 id="method.max_by_key" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key" class="fnname">max_by_key</a>&lt;B, F&gt;(self, f: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.6.0">1.6.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2611-2614" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the element that gives the maximum value from the
specified function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max_by_key">Read more</a></p>
</div><h4 id="method.max_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max_by" class="fnname">max_by</a>&lt;F&gt;(self, compare: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.15.0">1.15.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2644-2647" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the element that gives the maximum value with respect to the
specified comparison function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.max_by">Read more</a></p>
</div><h4 id="method.min_by_key" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min_by_key" class="fnname">min_by_key</a>&lt;B, F&gt;(self, f: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; B,<br>&nbsp;&nbsp;&nbsp;&nbsp;B: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.6.0">1.6.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2671-2674" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the element that gives the minimum value from the
specified function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min_by_key">Read more</a></p>
</div><h4 id="method.min_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min_by" class="fnname">min_by</a>&lt;F&gt;(self, compare: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.15.0">1.15.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2704-2707" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Returns the element that gives the minimum value with respect to the
specified comparison function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.min_by">Read more</a></p>
</div><h4 id="method.rev" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.rev" class="fnname">rev</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/rev/struct.Rev.html" title="struct core::iter::adapters::rev::Rev">Rev</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2740-2742" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Reverses an iterators direction. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.rev">Read more</a></p>
</div><h4 id="method.unzip" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.unzip" class="fnname">unzip</a>&lt;A, B, FromA, FromB&gt;(self) -&gt; (FromA, FromB) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = (A, B)&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;FromA: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a>&lt;A&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;FromB: <a class="trait" href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html" title="trait core::default::Default">Default</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.Extend.html" title="trait core::iter::traits::collect::Extend">Extend</a>&lt;B&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2770-2774" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Converts an iterator of pairs into a pair of containers. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.unzip">Read more</a></p>
</div><h4 id="method.copied" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.copied" class="fnname">copied</a>&lt;'a, T&gt;(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/copied/struct.Copied.html" title="struct core::iter::adapters::copied::Copied">Copied</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = &amp;'a T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.36.0">1.36.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2821-2824" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which copies all of its elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.copied">Read more</a></p>
</div><h4 id="method.cloned" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cloned" class="fnname">cloned</a>&lt;'a, T&gt;(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/cloned/struct.Cloned.html" title="struct core::iter::adapters::cloned::Cloned">Cloned</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&lt;Item = &amp;'a T&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'a + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2852-2855" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator which <a href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html#tymethod.clone"><code>clone</code></a>s all of its elements. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cloned">Read more</a></p>
</div><h4 id="method.cycle" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cycle" class="fnname">cycle</a>(self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/iter/adapters/cycle/struct.Cycle.html" title="struct core::iter::adapters::cycle::Cycle">Cycle</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2885-2887" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Repeats an iterator endlessly. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cycle">Read more</a></p>
</div><h4 id="method.sum" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.sum" class="fnname">sum</a>&lt;S&gt;(self) -&gt; S <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Sum.html" title="trait core::iter::traits::accum::Sum">Sum</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2915-2918" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Sums the elements of an iterator. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.sum">Read more</a></p>
</div><h4 id="method.product" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.product" class="fnname">product</a>&lt;P&gt;(self) -&gt; P <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;P: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/accum/trait.Product.html" title="trait core::iter::traits::accum::Product">Product</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.11.0">1.11.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2944-2947" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Iterates over the entire iterator, multiplying all the elements <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.product">Read more</a></p>
</div><h4 id="method.cmp" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cmp" class="fnname">cmp</a>&lt;I&gt;(self, other: I) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2965-2969" title="goto source code">[src]</a></h4><div class='docblock hidden'><p><a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> with those
of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cmp">Read more</a></p>
</div><h4 id="method.cmp_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cmp_by" class="fnname">cmp_by</a>&lt;I, F&gt;(self, other: I, cmp: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#2994-2998" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_order_by</code>)</div></div><div class='docblock hidden'><p><a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> with those
of another with respect to the specified comparison function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.cmp_by">Read more</a></p>
</div><h4 id="method.partial_cmp" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp" class="fnname">partial_cmp</a>&lt;I&gt;(self, other: I) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3041-3045" title="goto source code">[src]</a></h4><div class='docblock hidden'><p><a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> with those
of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp">Read more</a></p>
</div><h4 id="method.partial_cmp_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp_by" class="fnname">partial_cmp_by</a>&lt;I, F&gt;(self, other: I, partial_cmp: F) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3079-3083" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_order_by</code>)</div></div><div class='docblock hidden'><p><a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">Lexicographically</a> compares the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> with those
of another with respect to the specified comparison function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.partial_cmp_by">Read more</a></p>
</div><h4 id="method.eq" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.eq" class="fnname">eq</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3121-3125" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are equal to those of
another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.eq">Read more</a></p>
</div><h4 id="method.eq_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.eq_by" class="fnname">eq_by</a>&lt;I, F&gt;(self, other: I, eq: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>) -&gt; bool,<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3146-3150" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>iter_order_by</code>)</div></div><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are equal to those of
another with respect to the specified equality function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.eq_by">Read more</a></p>
</div><h4 id="method.ne" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.ne" class="fnname">ne</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialEq.html" title="trait core::cmp::PartialEq">PartialEq</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3181-3185" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are unequal to those of
another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.ne">Read more</a></p>
</div><h4 id="method.lt" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.lt" class="fnname">lt</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3202-3206" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">lexicographically</a>
less than those of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.lt">Read more</a></p>
</div><h4 id="method.le" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.le" class="fnname">le</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3223-3227" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">lexicographically</a>
less or equal to those of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.le">Read more</a></p>
</div><h4 id="method.gt" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.gt" class="fnname">gt</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3244-3248" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">lexicographically</a>
greater than those of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.gt">Read more</a></p>
</div><h4 id="method.ge" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.ge" class="fnname">ge</a>&lt;I&gt;(self, other: I) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;&lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>&gt;,&nbsp;</span></code><span class="since" title="Stable since Rust version 1.5.0">1.5.0</span><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3265-3269" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Determines if the elements of this <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="Iterator"><code>Iterator</code></a> are <a href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html#lexicographical-comparison">lexicographically</a>
greater than or equal to those of another. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.ge">Read more</a></p>
</div><h4 id="method.is_sorted" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted" class="fnname">is_sorted</a>(self) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>&gt;,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3296-3299" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>is_sorted</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Checks if the elements of this iterator are sorted. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted">Read more</a></p>
</div><h4 id="method.is_sorted_by" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by" class="fnname">is_sorted_by</a>&lt;F&gt;(self, compare: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(&amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>, &amp;Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html" title="enum core::cmp::Ordering">Ordering</a>&gt;,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3324-3327" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>is_sorted</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Checks if the elements of this iterator are sorted using the given comparator function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by">Read more</a></p>
</div><h4 id="method.is_sorted_by_key" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by_key" class="fnname">is_sorted_by_key</a>&lt;F, K&gt;(self, f: F) -&gt; bool <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html" title="trait core::ops::function::FnMut">FnMut</a>(Self::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a>) -&gt; K,<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;K&gt;,&nbsp;</span></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/iterator.rs.html#3370-3374" title="goto source code">[src]</a></h4><div class="item-info hidden"><div class="stab unstable"><details><summary><span class="emoji">🔬</span> This is a nightly-only experimental API. (<code>is_sorted</code>)</summary><p>new API</p>
</details></div></div><div class='docblock hidden'><p>Checks if the elements of this iterator are sorted using the given key extraction
function. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#method.is_sorted_by_key">Read more</a></p>
</div></div></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><h3 id="impl-Send" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,&nbsp;</span></code><a href="#impl-Send" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Sync" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,&nbsp;</span></code><a href="#impl-Sync" class="anchor"></a></h3><div class="impl-items"></div><h3 id="impl-Unpin" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../num_integer/struct.IterBinomial.html" title="struct num_integer::IterBinomial">IterBinomial</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,&nbsp;</span></code><a href="#impl-Unpin" class="anchor"></a></h3><div class="impl-items"></div></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><h3 id="impl-Any" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Any" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#131-135" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.type_id" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3 id="impl-Borrow%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-Borrow%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#207-211" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; &amp;T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#208" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3 id="impl-BorrowMut%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></code><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214-218" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.borrow_mut" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; &amp;mut T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#215" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3 id="impl-From%3CT%3E" class="impl"><code class="in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</code><a href="#impl-From%3CT%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#545-549" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#546" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-Into%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-Into%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#534-541" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#538" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-IntoIterator" class="impl"><code class="in-band">impl&lt;I&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>,&nbsp;</span></code><a href="#impl-IntoIterator" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#236-243" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Item-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="type">Item</a> = &lt;I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a>&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" title="type core::iter::traits::iterator::Iterator::Item">Item</a></code></h4><div class='docblock'><p>The type of the elements being iterated over.</p>
</div><h4 id="associatedtype.IntoIter" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="type">IntoIter</a> = I</code></h4><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4 id="method.into_iter" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; I</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#240" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3 id="impl-TryFrom%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#582-591" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="type">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_from" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#588" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3 id="impl-TryInto%3CU%3E" class="impl"><code class="in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></code><a href="#impl-TryInto%3CU%3E" class="anchor"></a><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#568-577" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="associatedtype.Error-1" class="type"><code>type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="type">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></code></h4><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4 id="method.try_into" class="method hidden"><code>pub fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="type" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</code><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#574" title="goto source code">[src]</a></h4><div class='docblock hidden'><p>Performs the conversion.</p>
</div></div></div></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+37
View File
@@ -0,0 +1,37 @@
<!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="Provides methods to compute the average of two integers, without overflows."><meta name="keywords" content="rust, rustlang, rust-lang, Average"><title>num_integer::Average - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Trait Average</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.average_ceil">average_ceil</a><a href="#tymethod.average_floor">average_floor</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="Average" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">num_integer</a>::<wbr><a class="trait" href="">Average</a></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_integer/average.rs.html#5-43" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait Average: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> {
fn <a href="#tymethod.average_ceil" class="fnname">average_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self;
<div class="item-spacer"></div> fn <a href="#tymethod.average_floor" class="fnname">average_floor</a>(&amp;self, other: &amp;Self) -&gt; Self;
}</pre></div><div class="docblock"><p>Provides methods to compute the average of two integers, without overflows.</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.average_ceil" class="method"><code>fn <a href="#tymethod.average_ceil" class="fnname">average_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/average.rs.html#23" title="goto source code">[src]</a></h3><div class="docblock"><p>Returns the ceiling value of the average of <code>self</code> and <code>other</code>.
<code>⌈(self + other)/2⌉</code></p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_integer</span>::<span class="ident">Average</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">3</span>).<span class="ident">average_ceil</span>(<span class="kw-2">&amp;</span><span class="number">10</span>), <span class="number">7</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">2</span>).<span class="ident">average_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">5</span>), <span class="op">-</span><span class="number">3</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">4</span>).<span class="ident">average_ceil</span>(<span class="op">&amp;</span> <span class="number">4</span>), <span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u8</span>::<span class="ident">max_value</span>().<span class="ident">average_ceil</span>(<span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">129</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">i8</span>::<span class="ident">min_value</span>().<span class="ident">average_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">1</span>), <span class="op">-</span><span class="number">64</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">i8</span>::<span class="ident">min_value</span>().<span class="ident">average_ceil</span>(<span class="kw-2">&amp;</span><span class="ident">i8</span>::<span class="ident">max_value</span>()), <span class="number">0</span>);</pre></div>
</div><h3 id="tymethod.average_floor" class="method"><code>fn <a href="#tymethod.average_floor" class="fnname">average_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/average.rs.html#42" title="goto source code">[src]</a></h3><div class="docblock"><p>Returns the floor value of the average of <code>self</code> and <code>other</code>.
<code>⌊(self + other)/2⌋</code></p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_integer</span>::<span class="ident">Average</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">3</span>).<span class="ident">average_floor</span>(<span class="kw-2">&amp;</span><span class="number">10</span>), <span class="number">6</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">2</span>).<span class="ident">average_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">5</span>), <span class="op">-</span><span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">4</span>).<span class="ident">average_floor</span>(<span class="op">&amp;</span> <span class="number">4</span>), <span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u8</span>::<span class="ident">max_value</span>().<span class="ident">average_floor</span>(<span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">128</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">i8</span>::<span class="ident">min_value</span>().<span class="ident">average_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">1</span>), <span class="op">-</span><span class="number">65</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">i8</span>::<span class="ident">min_value</span>().<span class="ident">average_floor</span>(<span class="kw-2">&amp;</span><span class="ident">i8</span>::<span class="ident">max_value</span>()), <span class="op">-</span><span class="number">1</span>);</pre></div>
</div></div><span class="loading-content">Loading content...</span><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-Average" class="impl"><code class="in-band">impl&lt;I&gt; <a class="trait" href="../num_integer/trait.Average.html" title="trait num_integer::Average">Average</a> for I <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;I: <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Shr.html" title="trait core::ops::bit::Shr">Shr</a>&lt;usize, Output = I&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a>&lt;&amp;'b I, Output = I&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a>&lt;&amp;'b I, Output = I&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a>&lt;&amp;'b I, Output = I&gt;,&nbsp;</span></code><a href="#impl-Average" class="anchor"></a><a class="srclink" href="../src/num_integer/average.rs.html#45-65" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.average_floor" class="method"><code>fn <a href="#method.average_floor" class="fnname">average_floor</a>(&amp;self, other: &amp;I) -&gt; I</code><a class="srclink" href="../src/num_integer/average.rs.html#56-58" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the floor value of the average of <code>self</code> and <code>other</code>.</p>
</div><h4 id="method.average_ceil" class="method"><code>fn <a href="#method.average_ceil" class="fnname">average_ceil</a>(&amp;self, other: &amp;I) -&gt; I</code><a class="srclink" href="../src/num_integer/average.rs.html#62-64" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns the ceil value of the average of <code>self</code> and <code>other</code>.</p>
</div></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../implementors/num_integer/trait.Average.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
+313
View File
@@ -0,0 +1,313 @@
<!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 `Integer` trait in crate `num_integer`."><meta name="keywords" content="rust, rustlang, rust-lang, Integer"><title>num_integer::Integer - 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="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><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='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><p class="location">Trait Integer</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.div_floor">div_floor</a><a href="#tymethod.mod_floor">mod_floor</a><a href="#tymethod.gcd">gcd</a><a href="#tymethod.lcm">lcm</a><a href="#tymethod.divides">divides</a><a href="#tymethod.is_multiple_of">is_multiple_of</a><a href="#tymethod.is_even">is_even</a><a href="#tymethod.is_odd">is_odd</a><a href="#tymethod.div_rem">div_rem</a></div><a class="sidebar-title" href="#provided-methods">Provided Methods</a><div class="sidebar-links"><a href="#method.div_ceil">div_ceil</a><a href="#method.div_mod_floor">div_mod_floor</a><a href="#method.gcd_lcm">gcd_lcm</a><a href="#method.extended_gcd">extended_gcd</a><a href="#method.extended_gcd_lcm">extended_gcd_lcm</a><a href="#method.next_multiple_of">next_multiple_of</a><a href="#method.prev_multiple_of">prev_multiple_of</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class="location"><a href="index.html">num_integer</a></p><div id="sidebar-vars" data-name="Integer" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><script src="../theme.js"></script><nav class="sub"><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" disabled autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"></div><button type="button" class="help-button">?</button>
<a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class="fqn"><span class="in-band">Trait <a href="index.html">num_integer</a>::<wbr><a class="trait" href="">Integer</a></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_integer/lib.rs.html#37-346" title="goto source code">[src]</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class="rust trait">pub trait Integer: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> {
fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self;
<div class="item-spacer"></div> fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self;
<div class="item-spacer"></div> fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self;
<div class="item-spacer"></div> fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self;
<div class="item-spacer"></div> fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool;
<div class="item-spacer"></div> fn <a href="#tymethod.is_multiple_of" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool;
<div class="item-spacer"></div> fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; bool;
<div class="item-spacer"></div> fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; bool;
<div class="item-spacer"></div> fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self);
fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self { ... }
<div class="item-spacer"></div> fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self) { ... }
<div class="item-spacer"></div> fn <a href="#method.extended_gcd" class="fnname">extended_gcd</a>(&amp;self, other: &amp;Self) -&gt; <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.div_mod_floor" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self) { ... }
<div class="item-spacer"></div> fn <a href="#method.next_multiple_of" class="fnname">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.prev_multiple_of" class="fnname">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
}</pre></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.div_floor" class="method"><code>fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#54" title="goto source code">[src]</a></h3><div class="docblock"><p>Floored integer division.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">3</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">3</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);</pre></div>
</div><h3 id="tymethod.mod_floor" class="method"><code>fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#78" title="goto source code">[src]</a></h3><div class="docblock"><p>Floored integer modulo, satisfying:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="ident">d</span>) <span class="op">*</span> <span class="ident">d</span> <span class="op">+</span> <span class="ident">n</span>.<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="ident">d</span>) <span class="op">=</span><span class="op">=</span> <span class="ident">n</span>)</pre></div>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);</pre></div>
</div><h3 id="tymethod.gcd" class="method"><code>fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#114" title="goto source code">[src]</a></h3><div class="docblock"><p>Greatest Common Divisor (GCD).</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">6</span>.<span class="ident">gcd</span>(<span class="kw-2">&amp;</span><span class="number">8</span>), <span class="number">2</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">7</span>.<span class="ident">gcd</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">1</span>);</pre></div>
</div><h3 id="tymethod.lcm" class="method"><code>fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#126" title="goto source code">[src]</a></h3><div class="docblock"><p>Lowest Common Multiple (LCM).</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">7</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">21</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">2</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">4</span>), <span class="number">4</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">0</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">0</span>), <span class="number">0</span>);</pre></div>
</div><h3 id="tymethod.divides" class="method"><code>fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#212" title="goto source code">[src]</a></h3><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h3 id="tymethod.is_multiple_of" class="method"><code>fn <a href="#tymethod.is_multiple_of" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#223" title="goto source code">[src]</a></h3><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is a multiple of <code>other</code>.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">9</span>.<span class="ident">is_multiple_of</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="bool-val">true</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">3</span>.<span class="ident">is_multiple_of</span>(<span class="kw-2">&amp;</span><span class="number">9</span>), <span class="bool-val">false</span>);</pre></div>
</div><h3 id="tymethod.is_even" class="method"><code>fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#234" title="goto source code">[src]</a></h3><div class="docblock"><p>Returns <code>true</code> if the number is even.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">3</span>.<span class="ident">is_even</span>(), <span class="bool-val">false</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">4</span>.<span class="ident">is_even</span>(), <span class="bool-val">true</span>);</pre></div>
</div><h3 id="tymethod.is_odd" class="method"><code>fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#245" title="goto source code">[src]</a></h3><div class="docblock"><p>Returns <code>true</code> if the number is odd.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">3</span>.<span class="ident">is_odd</span>(), <span class="bool-val">true</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">4</span>.<span class="ident">is_odd</span>(), <span class="bool-val">false</span>);</pre></div>
</div><h3 id="tymethod.div_rem" class="method"><code>fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#264" title="goto source code">[src]</a></h3><div class="docblock"><p>Simultaneous truncated integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), (<span class="op">-</span><span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), (<span class="op">-</span><span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));</pre></div>
</div></div><span class="loading-content">Loading content...</span><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><h3 id="method.div_ceil" class="method"><code>fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#96-103" title="goto source code">[src]</a></h3><div class="docblock"><p>Ceiled integer division.</p>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">3</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), <span class="number">3</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">1</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), <span class="number">1</span>);</pre></div>
</div><h3 id="method.gcd_lcm" class="method"><code>fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#142-144" title="goto source code">[src]</a></h3><div class="docblock"><p>Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) together.</p>
<p>Potentially more efficient than calling <code>gcd</code> and <code>lcm</code>
individually for identical inputs.</p>
<h1 id="examples-9" class="section-header"><a href="#examples-9">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">10</span>.<span class="ident">gcd_lcm</span>(<span class="kw-2">&amp;</span><span class="number">4</span>), (<span class="number">2</span>, <span class="number">20</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">8</span>.<span class="ident">gcd_lcm</span>(<span class="kw-2">&amp;</span><span class="number">9</span>), (<span class="number">1</span>, <span class="number">72</span>));</pre></div>
</div><h3 id="method.extended_gcd" class="method"><code>fn <a href="#method.extended_gcd" class="fnname">extended_gcd</a>(&amp;self, other: &amp;Self) -&gt; <a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="../src/num_integer/lib.rs.html#165-200" title="goto source code">[src]</a></h3><div class="docblock"><p>Greatest common divisor and Bézout coefficients.</p>
<h1 id="examples-10" class="section-header"><a href="#examples-10">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">fn</span> <span class="ident">check</span><span class="op">&lt;</span><span class="ident">A</span>: <span class="ident">Copy</span> <span class="op">+</span> <span class="ident">Integer</span> <span class="op">+</span> <span class="ident">NumAssign</span><span class="op">&gt;</span>(<span class="ident">a</span>: <span class="ident">A</span>, <span class="ident">b</span>: <span class="ident">A</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">bool</span> {
<span class="kw">let</span> <span class="ident">ExtendedGcd</span> { <span class="ident">gcd</span>, <span class="ident">x</span>, <span class="ident">y</span>, .. } <span class="op">=</span> <span class="ident">a</span>.<span class="ident">extended_gcd</span>(<span class="kw-2">&amp;</span><span class="ident">b</span>);
<span class="ident">gcd</span> <span class="op">=</span><span class="op">=</span> <span class="ident">x</span> <span class="op">*</span> <span class="ident">a</span> <span class="op">+</span> <span class="ident">y</span> <span class="op">*</span> <span class="ident">b</span>
}
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">check</span>(<span class="number">10isize</span>, <span class="number">4isize</span>));
<span class="macro">assert</span><span class="macro">!</span>(<span class="ident">check</span>(<span class="number">8isize</span>, <span class="number">9isize</span>));</pre></div>
</div><h3 id="method.extended_gcd_lcm" class="method"><code>fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a>,&nbsp;</span></code><a class="srclink" href="../src/num_integer/lib.rs.html#204-209" title="goto source code">[src]</a></h3><div class="docblock"><p>Greatest common divisor, least common multiple, and Bézout coefficients.</p>
</div><h3 id="method.div_mod_floor" class="method"><code>fn <a href="#method.div_mod_floor" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#283-285" title="goto source code">[src]</a></h3><div class="docblock"><p>Simultaneous floored integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h1 id="examples-11" class="section-header"><a href="#examples-11">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">8</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), (<span class="op">-</span><span class="number">3</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), (<span class="op">-</span><span class="number">3</span>, <span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">1</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), (<span class="op">-</span><span class="number">1</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), (<span class="op">-</span><span class="number">1</span>, <span class="number">1</span>));
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));</pre></div>
</div><h3 id="method.next_multiple_of" class="method"><code>fn <a href="#method.next_multiple_of" class="fnname">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="../src/num_integer/lib.rs.html#307-318" title="goto source code">[src]</a></h3><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
<h1 id="notes" class="section-header"><a href="#notes">Notes</a></h1>
<p>For signed types, <code>a.next_multiple_of(b) = a.prev_multiple_of(b.neg())</code>.</p>
<h1 id="examples-12" class="section-header"><a href="#examples-12">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">24</span>);</pre></div>
</div><h3 id="method.prev_multiple_of" class="method"><code>fn <a href="#method.prev_multiple_of" class="fnname">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></code><a class="srclink" href="../src/num_integer/lib.rs.html#340-345" title="goto source code">[src]</a></h3><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
<h1 id="notes-1" class="section-header"><a href="#notes-1">Notes</a></h1>
<p>For signed types, <code>a.prev_multiple_of(b) = a.next_multiple_of(b.neg())</code>.</p>
<h1 id="examples-13" class="section-header"><a href="#examples-13">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>(( <span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">24</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq</span><span class="macro">!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);</pre></div>
</div></div><span class="loading-content">Loading content...</span><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-Integer" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for i8</code><a href="#impl-Integer" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor" class="method"><code>fn <a href="#method.div_floor" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor" class="method"><code>fn <a href="#method.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-1" class="method"><code>fn <a href="#method.div_mod_floor-1" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-1" class="method hidden"><code>fn <a href="#method.div_ceil-1" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><h4 id="method.gcd" class="method"><code>fn <a href="#method.gcd" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-1" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-1" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><h4 id="method.lcm" class="method"><code>fn <a href="#method.lcm" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-1" class="method"><code>fn <a href="#method.gcd_lcm-1" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides" class="method"><code>fn <a href="#method.divides" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of" class="method"><code>fn <a href="#method.is_multiple_of" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even" class="method"><code>fn <a href="#method.is_even" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd" class="method"><code>fn <a href="#method.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem" class="method"><code>fn <a href="#method.div_rem" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-1" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for i16</code><a href="#impl-Integer-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-1" class="method"><code>fn <a href="#method.div_floor-1" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor-1" class="method"><code>fn <a href="#method.mod_floor-1" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-2" class="method"><code>fn <a href="#method.div_mod_floor-2" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-2" class="method hidden"><code>fn <a href="#method.div_ceil-2" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><h4 id="method.gcd-1" class="method"><code>fn <a href="#method.gcd-1" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-2" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-2" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><h4 id="method.lcm-1" class="method"><code>fn <a href="#method.lcm-1" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-2" class="method"><code>fn <a href="#method.gcd_lcm-2" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-1" class="method"><code>fn <a href="#method.divides-1" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-1" class="method"><code>fn <a href="#method.is_multiple_of-1" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-1" class="method"><code>fn <a href="#method.is_even-1" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd-1" class="method"><code>fn <a href="#method.is_odd-1" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem-1" class="method"><code>fn <a href="#method.div_rem-1" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-2" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for i32</code><a href="#impl-Integer-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-2" class="method"><code>fn <a href="#method.div_floor-2" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor-2" class="method"><code>fn <a href="#method.mod_floor-2" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-3" class="method"><code>fn <a href="#method.div_mod_floor-3" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-3" class="method hidden"><code>fn <a href="#method.div_ceil-3" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><h4 id="method.gcd-2" class="method"><code>fn <a href="#method.gcd-2" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-3" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-3" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><h4 id="method.lcm-2" class="method"><code>fn <a href="#method.lcm-2" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-3" class="method"><code>fn <a href="#method.gcd_lcm-3" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-2" class="method"><code>fn <a href="#method.divides-2" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-2" class="method"><code>fn <a href="#method.is_multiple_of-2" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-2" class="method"><code>fn <a href="#method.is_even-2" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd-2" class="method"><code>fn <a href="#method.is_odd-2" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem-2" class="method"><code>fn <a href="#method.div_rem-2" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-3" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for i64</code><a href="#impl-Integer-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-3" class="method"><code>fn <a href="#method.div_floor-3" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor-3" class="method"><code>fn <a href="#method.mod_floor-3" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-4" class="method"><code>fn <a href="#method.div_mod_floor-4" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-4" class="method hidden"><code>fn <a href="#method.div_ceil-4" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><h4 id="method.gcd-3" class="method"><code>fn <a href="#method.gcd-3" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-4" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-4" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><h4 id="method.lcm-3" class="method"><code>fn <a href="#method.lcm-3" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-4" class="method"><code>fn <a href="#method.gcd_lcm-4" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-3" class="method"><code>fn <a href="#method.divides-3" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-3" class="method"><code>fn <a href="#method.is_multiple_of-3" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-3" class="method"><code>fn <a href="#method.is_even-3" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd-3" class="method"><code>fn <a href="#method.is_odd-3" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem-3" class="method"><code>fn <a href="#method.div_rem-3" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-4" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for i128</code><a href="#impl-Integer-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-4" class="method"><code>fn <a href="#method.div_floor-4" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor-4" class="method"><code>fn <a href="#method.mod_floor-4" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-5" class="method"><code>fn <a href="#method.div_mod_floor-5" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-5" class="method hidden"><code>fn <a href="#method.div_ceil-5" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><h4 id="method.gcd-4" class="method"><code>fn <a href="#method.gcd-4" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-5" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-5" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><h4 id="method.lcm-4" class="method"><code>fn <a href="#method.lcm-4" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-5" class="method"><code>fn <a href="#method.gcd_lcm-5" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-4" class="method"><code>fn <a href="#method.divides-4" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-4" class="method"><code>fn <a href="#method.is_multiple_of-4" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-4" class="method"><code>fn <a href="#method.is_even-4" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd-4" class="method"><code>fn <a href="#method.is_odd-4" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem-4" class="method"><code>fn <a href="#method.div_rem-4" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-5" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for isize</code><a href="#impl-Integer-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-5" class="method"><code>fn <a href="#method.div_floor-5" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer division</p>
</div><h4 id="method.mod_floor-5" class="method"><code>fn <a href="#method.mod_floor-5" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Floored integer modulo</p>
</div><h4 id="method.div_mod_floor-6" class="method"><code>fn <a href="#method.div_mod_floor-6" class="fnname">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div><h4 id="method.div_ceil-6" class="method hidden"><code>fn <a href="#method.div_ceil-6" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><h4 id="method.gcd-5" class="method"><code>fn <a href="#method.gcd-5" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div><h4 id="method.extended_gcd_lcm-6" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-6" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><h4 id="method.lcm-5" class="method"><code>fn <a href="#method.lcm-5" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div><h4 id="method.gcd_lcm-6" class="method"><code>fn <a href="#method.gcd_lcm-6" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-5" class="method"><code>fn <a href="#method.divides-5" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-5" class="method"><code>fn <a href="#method.is_multiple_of-5" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-5" class="method"><code>fn <a href="#method.is_even-5" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div><h4 id="method.is_odd-5" class="method"><code>fn <a href="#method.is_odd-5" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div><h4 id="method.div_rem-5" class="method"><code>fn <a href="#method.div_rem-5" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-6" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for u8</code><a href="#impl-Integer-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-6" class="method"><code>fn <a href="#method.div_floor-6" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-6" class="method"><code>fn <a href="#method.mod_floor-6" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-7" class="method hidden"><code>fn <a href="#method.div_ceil-7" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><h4 id="method.gcd-6" class="method"><code>fn <a href="#method.gcd-6" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-7" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-7" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><h4 id="method.lcm-6" class="method"><code>fn <a href="#method.lcm-6" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-7" class="method"><code>fn <a href="#method.gcd_lcm-7" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-6" class="method"><code>fn <a href="#method.divides-6" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-6" class="method"><code>fn <a href="#method.is_multiple_of-6" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-6" class="method"><code>fn <a href="#method.is_even-6" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-6" class="method"><code>fn <a href="#method.is_odd-6" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-6" class="method"><code>fn <a href="#method.div_rem-6" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-7" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for u16</code><a href="#impl-Integer-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-7" class="method"><code>fn <a href="#method.div_floor-7" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-7" class="method"><code>fn <a href="#method.mod_floor-7" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-8" class="method hidden"><code>fn <a href="#method.div_ceil-8" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><h4 id="method.gcd-7" class="method"><code>fn <a href="#method.gcd-7" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-8" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-8" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><h4 id="method.lcm-7" class="method"><code>fn <a href="#method.lcm-7" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-8" class="method"><code>fn <a href="#method.gcd_lcm-8" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-7" class="method"><code>fn <a href="#method.divides-7" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-7" class="method"><code>fn <a href="#method.is_multiple_of-7" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-7" class="method"><code>fn <a href="#method.is_even-7" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-7" class="method"><code>fn <a href="#method.is_odd-7" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-7" class="method"><code>fn <a href="#method.div_rem-7" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-8" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for u32</code><a href="#impl-Integer-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-8" class="method"><code>fn <a href="#method.div_floor-8" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-8" class="method"><code>fn <a href="#method.mod_floor-8" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-9" class="method hidden"><code>fn <a href="#method.div_ceil-9" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><h4 id="method.gcd-8" class="method"><code>fn <a href="#method.gcd-8" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-9" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-9" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><h4 id="method.lcm-8" class="method"><code>fn <a href="#method.lcm-8" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-9" class="method"><code>fn <a href="#method.gcd_lcm-9" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-8" class="method"><code>fn <a href="#method.divides-8" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-8" class="method"><code>fn <a href="#method.is_multiple_of-8" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-8" class="method"><code>fn <a href="#method.is_even-8" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-8" class="method"><code>fn <a href="#method.is_odd-8" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-8" class="method"><code>fn <a href="#method.div_rem-8" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-9" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for u64</code><a href="#impl-Integer-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-9" class="method"><code>fn <a href="#method.div_floor-9" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-9" class="method"><code>fn <a href="#method.mod_floor-9" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-10" class="method hidden"><code>fn <a href="#method.div_ceil-10" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><h4 id="method.gcd-9" class="method"><code>fn <a href="#method.gcd-9" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-10" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-10" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><h4 id="method.lcm-9" class="method"><code>fn <a href="#method.lcm-9" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-10" class="method"><code>fn <a href="#method.gcd_lcm-10" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-9" class="method"><code>fn <a href="#method.divides-9" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-9" class="method"><code>fn <a href="#method.is_multiple_of-9" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-9" class="method"><code>fn <a href="#method.is_even-9" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-9" class="method"><code>fn <a href="#method.is_odd-9" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-9" class="method"><code>fn <a href="#method.div_rem-9" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-10" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for u128</code><a href="#impl-Integer-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-10" class="method"><code>fn <a href="#method.div_floor-10" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-10" class="method"><code>fn <a href="#method.mod_floor-10" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-11" class="method hidden"><code>fn <a href="#method.div_ceil-11" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><h4 id="method.gcd-10" class="method"><code>fn <a href="#method.gcd-10" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-11" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-11" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><h4 id="method.lcm-10" class="method"><code>fn <a href="#method.lcm-10" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-11" class="method"><code>fn <a href="#method.gcd_lcm-11" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-10" class="method"><code>fn <a href="#method.divides-10" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-10" class="method"><code>fn <a href="#method.is_multiple_of-10" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-10" class="method"><code>fn <a href="#method.is_even-10" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-10" class="method"><code>fn <a href="#method.is_odd-10" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-10" class="method"><code>fn <a href="#method.div_rem-10" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1014" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div><h3 id="impl-Integer-11" class="impl"><code class="in-band">impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for usize</code><a href="#impl-Integer-11" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h3><div class="impl-items"><h4 id="method.div_floor-11" class="method"><code>fn <a href="#method.div_floor-11" class="fnname">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div><h4 id="method.mod_floor-11" class="method"><code>fn <a href="#method.mod_floor-11" class="fnname">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div><h4 id="method.div_ceil-12" class="method hidden"><code>fn <a href="#method.div_ceil-12" class="fnname">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><h4 id="method.gcd-11" class="method"><code>fn <a href="#method.gcd-11" class="fnname">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div><h4 id="method.extended_gcd_lcm-12" class="method hidden"><code>fn <a href="#method.extended_gcd_lcm-12" class="fnname">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="../num_integer/struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><h4 id="method.lcm-11" class="method"><code>fn <a href="#method.lcm-11" class="fnname">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.gcd_lcm-12" class="method"><code>fn <a href="#method.gcd_lcm-12" class="fnname">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div><h4 id="method.divides-11" class="method"><code>fn <a href="#method.divides-11" class="fnname">divides</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div><h4 id="method.is_multiple_of-11" class="method"><code>fn <a href="#method.is_multiple_of-11" class="fnname">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div><h4 id="method.is_even-11" class="method"><code>fn <a href="#method.is_even-11" class="fnname">is_even</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div><h4 id="method.is_odd-11" class="method"><code>fn <a href="#method.is_odd-11" class="fnname">is_odd</a>(&amp;self) -&gt; bool</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div><h4 id="method.div_rem-11" class="method"><code>fn <a href="#method.div_rem-11" class="fnname">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</code><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></h4><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></div></div><span class="loading-content">Loading content...</span><script type="text/javascript" src="../implementors/num_integer/trait.Integer.js" async></script></section><section id="search" class="content hidden"></section><section class="footer"></section><div id="rustdoc-vars" data-root-path="../" data-current-crate="num_integer"></div>
<script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>
File diff suppressed because one or more lines are too long