trait.Integer.html 115 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239
  1. <!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="../dark.css"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script src="../storage.js"></script></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><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_mod_floor">div_mod_floor</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Integer">i8</a><a href="#impl-Integer">i16</a><a href="#impl-Integer">i32</a><a href="#impl-Integer">i64</a><a href="#impl-Integer">isize</a><a href="#impl-Integer">i128</a><a href="#impl-Integer">u8</a><a href="#impl-Integer">u16</a><a href="#impl-Integer">u32</a><a href="#impl-Integer">u64</a><a href="#impl-Integer">usize</a><a href="#impl-Integer">u128</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>num_integer</a></p><script>window.sidebarCurrent = {name: 'Integer', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!"><img src="../brush.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../theme.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><input class="search-input" name="search" autocomplete="off" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><a id="settings-menu" href="../settings.html"><img src="../wheel.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='in-band'>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#34-175' title='goto source code'>[src]</a></span></h1><div class="docblock type-decl"><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> {
  2. fn <a href='#tymethod.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
  3. <div class='item-spacer'></div> fn <a href='#tymethod.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
  4. <div class='item-spacer'></div> fn <a href='#tymethod.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
  5. <div class='item-spacer'></div> fn <a href='#tymethod.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
  6. <div class='item-spacer'></div> fn <a href='#tymethod.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
  7. <div class='item-spacer'></div> fn <a href='#tymethod.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
  8. <div class='item-spacer'></div> fn <a href='#tymethod.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
  9. <div class='item-spacer'></div> fn <a href='#tymethod.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>;
  10. <div class='item-spacer'></div> fn <a href='#tymethod.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;
  11. fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a> { ... }
  12. }</pre></div>
  13. <h2 id='required-methods' class='small-section-header'>
  14. Required Methods<a href='#required-methods' class='anchor'></a>
  15. </h2>
  16. <div class='methods'>
  17. <h3 id='tymethod.div_floor' class='method'><span id='div_floor.v' class='invisible'><code>fn <a href='#tymethod.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></h3><div class='docblock'><p>Floored integer division.</p>
  18. <h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
  19. <pre class="rust rust-example-rendered">
  20. <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="number">2</span>);
  21. <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="number">3</span>);
  22. <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="number">3</span>);
  23. <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="number">2</span>);
  24. <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="number">0</span>);
  25. <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="number">1</span>);
  26. <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="number">1</span>);
  27. <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="number">0</span>);</pre>
  28. </div><h3 id='tymethod.mod_floor' class='method'><span id='mod_floor.v' class='invisible'><code>fn <a href='#tymethod.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></h3><div class='docblock'><p>Floored integer modulo, satisfying:</p>
  29. <pre class="rust rust-example-rendered">
  30. <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="ident">n</span>)</pre>
  31. <h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
  32. <pre class="rust rust-example-rendered">
  33. <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="number">2</span>);
  34. <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="number">1</span>);
  35. <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="number">1</span>);
  36. <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="number">2</span>);
  37. <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="number">1</span>);
  38. <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="number">1</span>);
  39. <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="number">1</span>);
  40. <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="number">1</span>);</pre>
  41. </div><h3 id='tymethod.gcd' class='method'><span id='gcd.v' class='invisible'><code>fn <a href='#tymethod.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></h3><div class='docblock'><p>Greatest Common Divisor (GCD).</p>
  42. <h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
  43. <pre class="rust rust-example-rendered">
  44. <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>);
  45. <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>
  46. </div><h3 id='tymethod.lcm' class='method'><span id='lcm.v' class='invisible'><code>fn <a href='#tymethod.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></h3><div class='docblock'><p>Lowest Common Multiple (LCM).</p>
  47. <h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
  48. <pre class="rust rust-example-rendered">
  49. <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>);
  50. <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>);</pre>
  51. </div><h3 id='tymethod.divides' class='method'><span id='divides.v' class='invisible'><code>fn <a href='#tymethod.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  52. </div><h3 id='tymethod.is_multiple_of' class='method'><span id='is_multiple_of.v' class='invisible'><code>fn <a href='#tymethod.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><div class='docblock'><p>Returns <code>true</code> if <code>self</code> is a multiple of <code>other</code>.</p>
  53. <h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
  54. <pre class="rust rust-example-rendered">
  55. <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>);
  56. <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>
  57. </div><h3 id='tymethod.is_even' class='method'><span id='is_even.v' class='invisible'><code>fn <a href='#tymethod.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><div class='docblock'><p>Returns <code>true</code> if the number is even.</p>
  58. <h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
  59. <pre class="rust rust-example-rendered">
  60. <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>);
  61. <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>
  62. </div><h3 id='tymethod.is_odd' class='method'><span id='is_odd.v' class='invisible'><code>fn <a href='#tymethod.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></h3><div class='docblock'><p>Returns <code>true</code> if the number is odd.</p>
  63. <h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
  64. <pre class="rust rust-example-rendered">
  65. <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>);
  66. <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>
  67. </div><h3 id='tymethod.div_rem' class='method'><span id='div_rem.v' class='invisible'><code>fn <a href='#tymethod.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h3><div class='docblock'><p>Simultaneous truncated integer division and modulus.
  68. Returns <code>(quotient, remainder)</code>.</p>
  69. <h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
  70. <pre class="rust rust-example-rendered">
  71. <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>));
  72. <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>));
  73. <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>));
  74. <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>));
  75. <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>));
  76. <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>));
  77. <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>));
  78. <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>
  79. </div></div>
  80. <h2 id='provided-methods' class='small-section-header'>
  81. Provided Methods<a href='#provided-methods' class='anchor'></a>
  82. </h2>
  83. <div class='methods'>
  84. <h3 id='method.div_mod_floor' class='method'><span id='div_mod_floor.v' class='invisible'><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></h3><div class='docblock'><p>Simultaneous floored integer division and modulus.
  85. Returns <code>(quotient, remainder)</code>.</p>
  86. <h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
  87. <pre class="rust rust-example-rendered">
  88. <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>));
  89. <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>));
  90. <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>));
  91. <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>));
  92. <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>));
  93. <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>));
  94. <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>));
  95. <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>
  96. </div></div>
  97. <h2 id='foreign-impls' class='small-section-header'>
  98. Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
  99. </h2>
  100. <h3 id='impl-Integer' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-Integer' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor' class="method"><span id='div_floor.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  101. </div><h4 id='method.mod_floor' class="method"><span id='mod_floor.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  102. </div><h4 id='method.div_mod_floor-1' class="method"><span id='div_mod_floor.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  103. </div><h4 id='method.gcd' class="method"><span id='gcd.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  104. <code>other</code>. The result is always positive.</p>
  105. </div><h4 id='method.lcm' class="method"><span id='lcm.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  106. <code>other</code>.</p>
  107. </div><h4 id='method.divides' class="method"><span id='divides.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  108. </div><h4 id='method.is_multiple_of' class="method"><span id='is_multiple_of.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  109. </div><h4 id='method.is_even' class="method"><span id='is_even.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  110. </div><h4 id='method.is_odd' class="method"><span id='is_odd.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  111. </div><h4 id='method.div_rem' class="method"><span id='div_rem.v-1' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  112. </div></div></span><h3 id='impl-Integer-1' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a href='#impl-Integer-1' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-1' class="method"><span id='div_floor.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  113. </div><h4 id='method.mod_floor-1' class="method"><span id='mod_floor.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  114. </div><h4 id='method.div_mod_floor-2' class="method"><span id='div_mod_floor.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  115. </div><h4 id='method.gcd-1' class="method"><span id='gcd.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  116. <code>other</code>. The result is always positive.</p>
  117. </div><h4 id='method.lcm-1' class="method"><span id='lcm.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  118. <code>other</code>.</p>
  119. </div><h4 id='method.divides-1' class="method"><span id='divides.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  120. </div><h4 id='method.is_multiple_of-1' class="method"><span id='is_multiple_of.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  121. </div><h4 id='method.is_even-1' class="method"><span id='is_even.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  122. </div><h4 id='method.is_odd-1' class="method"><span id='is_odd.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  123. </div><h4 id='method.div_rem-1' class="method"><span id='div_rem.v-2' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  124. </div></div></span><h3 id='impl-Integer-2' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a href='#impl-Integer-2' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-2' class="method"><span id='div_floor.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  125. </div><h4 id='method.mod_floor-2' class="method"><span id='mod_floor.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  126. </div><h4 id='method.div_mod_floor-3' class="method"><span id='div_mod_floor.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  127. </div><h4 id='method.gcd-2' class="method"><span id='gcd.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  128. <code>other</code>. The result is always positive.</p>
  129. </div><h4 id='method.lcm-2' class="method"><span id='lcm.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  130. <code>other</code>.</p>
  131. </div><h4 id='method.divides-2' class="method"><span id='divides.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  132. </div><h4 id='method.is_multiple_of-2' class="method"><span id='is_multiple_of.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  133. </div><h4 id='method.is_even-2' class="method"><span id='is_even.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  134. </div><h4 id='method.is_odd-2' class="method"><span id='is_odd.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  135. </div><h4 id='method.div_rem-2' class="method"><span id='div_rem.v-3' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  136. </div></div></span><h3 id='impl-Integer-3' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code><a href='#impl-Integer-3' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-3' class="method"><span id='div_floor.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  137. </div><h4 id='method.mod_floor-3' class="method"><span id='mod_floor.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  138. </div><h4 id='method.div_mod_floor-4' class="method"><span id='div_mod_floor.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  139. </div><h4 id='method.gcd-3' class="method"><span id='gcd.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  140. <code>other</code>. The result is always positive.</p>
  141. </div><h4 id='method.lcm-3' class="method"><span id='lcm.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  142. <code>other</code>.</p>
  143. </div><h4 id='method.divides-3' class="method"><span id='divides.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  144. </div><h4 id='method.is_multiple_of-3' class="method"><span id='is_multiple_of.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  145. </div><h4 id='method.is_even-3' class="method"><span id='is_even.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  146. </div><h4 id='method.is_odd-3' class="method"><span id='is_odd.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  147. </div><h4 id='method.div_rem-3' class="method"><span id='div_rem.v-4' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  148. </div></div></span><h3 id='impl-Integer-4' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a href='#impl-Integer-4' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-4' class="method"><span id='div_floor.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  149. </div><h4 id='method.mod_floor-4' class="method"><span id='mod_floor.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  150. </div><h4 id='method.div_mod_floor-5' class="method"><span id='div_mod_floor.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  151. </div><h4 id='method.gcd-4' class="method"><span id='gcd.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  152. <code>other</code>. The result is always positive.</p>
  153. </div><h4 id='method.lcm-4' class="method"><span id='lcm.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  154. <code>other</code>.</p>
  155. </div><h4 id='method.divides-4' class="method"><span id='divides.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  156. </div><h4 id='method.is_multiple_of-4' class="method"><span id='is_multiple_of.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  157. </div><h4 id='method.is_even-4' class="method"><span id='is_even.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  158. </div><h4 id='method.is_odd-4' class="method"><span id='is_odd.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  159. </div><h4 id='method.div_rem-4' class="method"><span id='div_rem.v-5' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  160. </div></div></span><h3 id='impl-Integer-5' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i128.html">i128</a></code><a href='#impl-Integer-5' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#212-323' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-5' class="method"><span id='div_floor.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#215-223' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer division</p>
  161. </div><h4 id='method.mod_floor-5' class="method"><span id='mod_floor.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#227-235' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Floored integer modulo</p>
  162. </div><h4 id='method.div_mod_floor-6' class="method"><span id='div_mod_floor.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#239-247' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
  163. </div><h4 id='method.gcd-5' class="method"><span id='gcd.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#252-288' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and
  164. <code>other</code>. The result is always positive.</p>
  165. </div><h4 id='method.lcm-5' class="method"><span id='lcm.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#293-296' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and
  166. <code>other</code>.</p>
  167. </div><h4 id='method.divides-5' class="method"><span id='divides.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#300-302' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  168. </div><h4 id='method.is_multiple_of-5' class="method"><span id='is_multiple_of.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#306-308' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  169. </div><h4 id='method.is_even-5' class="method"><span id='is_even.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#312' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
  170. </div><h4 id='method.is_odd-5' class="method"><span id='is_odd.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#316' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
  171. </div><h4 id='method.div_rem-5' class="method"><span id='div_rem.v-6' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#320-322' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  172. </div></div></span><h3 id='impl-Integer-6' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a href='#impl-Integer-6' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-6' class="method"><span id='div_floor.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  173. </div><h4 id='method.mod_floor-6' class="method"><span id='mod_floor.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  174. </div><h4 id='method.gcd-6' class="method"><span id='gcd.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  175. </div><h4 id='method.lcm-6' class="method"><span id='lcm.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  176. </div><h4 id='method.divides-6' class="method"><span id='divides.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  177. </div><h4 id='method.is_multiple_of-6' class="method"><span id='is_multiple_of.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  178. </div><h4 id='method.is_even-6' class="method"><span id='is_even.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  179. </div><h4 id='method.is_odd-6' class="method"><span id='is_odd.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  180. </div><h4 id='method.div_rem-6' class="method"><span id='div_rem.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  181. </div><h4 id='method.div_mod_floor-7' class="method"><span id='div_mod_floor.v-7' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Integer-7' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code><a href='#impl-Integer-7' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-7' class="method"><span id='div_floor.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  182. </div><h4 id='method.mod_floor-7' class="method"><span id='mod_floor.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  183. </div><h4 id='method.gcd-7' class="method"><span id='gcd.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  184. </div><h4 id='method.lcm-7' class="method"><span id='lcm.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  185. </div><h4 id='method.divides-7' class="method"><span id='divides.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  186. </div><h4 id='method.is_multiple_of-7' class="method"><span id='is_multiple_of.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  187. </div><h4 id='method.is_even-7' class="method"><span id='is_even.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  188. </div><h4 id='method.is_odd-7' class="method"><span id='is_odd.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  189. </div><h4 id='method.div_rem-7' class="method"><span id='div_rem.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  190. </div><h4 id='method.div_mod_floor-8' class="method"><span id='div_mod_floor.v-8' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Integer-8' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a href='#impl-Integer-8' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-8' class="method"><span id='div_floor.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  191. </div><h4 id='method.mod_floor-8' class="method"><span id='mod_floor.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  192. </div><h4 id='method.gcd-8' class="method"><span id='gcd.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  193. </div><h4 id='method.lcm-8' class="method"><span id='lcm.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  194. </div><h4 id='method.divides-8' class="method"><span id='divides.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  195. </div><h4 id='method.is_multiple_of-8' class="method"><span id='is_multiple_of.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  196. </div><h4 id='method.is_even-8' class="method"><span id='is_even.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  197. </div><h4 id='method.is_odd-8' class="method"><span id='is_odd.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  198. </div><h4 id='method.div_rem-8' class="method"><span id='div_rem.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  199. </div><h4 id='method.div_mod_floor-9' class="method"><span id='div_mod_floor.v-9' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Integer-9' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code><a href='#impl-Integer-9' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-9' class="method"><span id='div_floor.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  200. </div><h4 id='method.mod_floor-9' class="method"><span id='mod_floor.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  201. </div><h4 id='method.gcd-9' class="method"><span id='gcd.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  202. </div><h4 id='method.lcm-9' class="method"><span id='lcm.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  203. </div><h4 id='method.divides-9' class="method"><span id='divides.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  204. </div><h4 id='method.is_multiple_of-9' class="method"><span id='is_multiple_of.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  205. </div><h4 id='method.is_even-9' class="method"><span id='is_even.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  206. </div><h4 id='method.is_odd-9' class="method"><span id='is_odd.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  207. </div><h4 id='method.div_rem-9' class="method"><span id='div_rem.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  208. </div><h4 id='method.div_mod_floor-10' class="method"><span id='div_mod_floor.v-10' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Integer-10' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a href='#impl-Integer-10' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-10' class="method"><span id='div_floor.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  209. </div><h4 id='method.mod_floor-10' class="method"><span id='mod_floor.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  210. </div><h4 id='method.gcd-10' class="method"><span id='gcd.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  211. </div><h4 id='method.lcm-10' class="method"><span id='lcm.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  212. </div><h4 id='method.divides-10' class="method"><span id='divides.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  213. </div><h4 id='method.is_multiple_of-10' class="method"><span id='is_multiple_of.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  214. </div><h4 id='method.is_even-10' class="method"><span id='is_even.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  215. </div><h4 id='method.is_odd-10' class="method"><span id='is_odd.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  216. </div><h4 id='method.div_rem-10' class="method"><span id='div_rem.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  217. </div><h4 id='method.div_mod_floor-11' class="method"><span id='div_mod_floor.v-11' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span><h3 id='impl-Integer-11' class='impl'><span class='in-band'><table class='table-display'><tbody><tr><td><code>impl <a class="trait" href="../num_integer/trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u128.html">u128</a></code><a href='#impl-Integer-11' class='anchor'></a></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#515-587' title='goto source code'>[src]</a></span></td></tr></tbody></table></h3><span class='docblock autohide'><div class='impl-items'><h4 id='method.div_floor-11' class="method"><span id='div_floor.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_floor' class='fnname'>div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#518-520' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
  218. </div><h4 id='method.mod_floor-11' class="method"><span id='mod_floor.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.mod_floor' class='fnname'>mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#524-526' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
  219. </div><h4 id='method.gcd-11' class="method"><span id='gcd.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.gcd' class='fnname'>gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#530-550' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
  220. </div><h4 id='method.lcm-11' class="method"><span id='lcm.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.lcm' class='fnname'>lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#554-556' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
  221. </div><h4 id='method.divides-11' class="method"><span id='divides.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.divides' class='fnname'>divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#560-562' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
  222. </div><h4 id='method.is_multiple_of-11' class="method"><span id='is_multiple_of.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_multiple_of' class='fnname'>is_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#566-568' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
  223. </div><h4 id='method.is_even-11' class="method"><span id='is_even.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_even' class='fnname'>is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#572-574' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
  224. </div><h4 id='method.is_odd-11' class="method"><span id='is_odd.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.is_odd' class='fnname'>is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#578-580' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
  225. </div><h4 id='method.div_rem-11' class="method"><span id='div_rem.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='#method.div_rem' class='fnname'>div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#584-586' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4><div class='docblock'><p>Simultaneous truncated integer division and modulus.</p>
  226. </div><h4 id='method.div_mod_floor-12' class="method"><span id='div_mod_floor.v-12' class='invisible'><table class='table-display'><tbody><tr><td><code>fn <a href='../num_integer/trait.Integer.html#method.div_mod_floor' class='fnname'>div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></span></td><td><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_integer/lib.rs.html#172-174' title='goto source code'>[src]</a></td></tr></tbody></table></span></h4></div></span>
  227. <h2 id='implementors' class='small-section-header'>
  228. Implementors<a href='#implementors' class='anchor'></a>
  229. </h2>
  230. <ul class='item-list' id='implementors-list'>
  231. </ul><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
  232. src="../implementors/num_integer/trait.Integer.js">
  233. </script></section><section id="search" class="content hidden"></section><section class="footer"></section><aside id="help" class="hidden"><div><h1 class="hidden">Help</h1><div class="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>&#9166;</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><div class="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g. <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g. <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g. <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../";window.currentCrate = "num_integer";</script><script src="../aliases.js"></script><script src="../main.js"></script><script defer src="../search-index.js"></script></body></html>