LibrEDA project web page. https://libreda.codeberg.page
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

311 lines
149 KiB

<!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>Integer in num_integer - Rust</title><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><link rel="stylesheet" type="text/css" href="../dark.css" disabled ><link rel="stylesheet" type="text/css" href="../ayu.css" disabled ><script id="default-settings"></script><script src="../storage.js"></script><script src="../crates.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="icon" type="image/svg+xml" href="../favicon.svg">
<link rel="alternate icon" type="image/png" href="../favicon-16x16.png">
<link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><style type="text/css">#crate-search{background-image:url("../down-arrow.svg");}</style></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"><div class="sidebar-menu" role="button">&#9776;</div><a href='../num_integer/index.html'><div class='logo-container rust-logo'><img src='../rust-logo.png' alt='logo'></div></a><h2 class="location">Trait Integer</h2><div class="sidebar-elems"><div class="block items"><h3 class="sidebar-title"><a href="#required-methods">Required Methods</a></h3><div class="sidebar-links"><a href="#tymethod.div_floor">div_floor</a><a href="#tymethod.div_rem">div_rem</a><a href="#tymethod.divides">divides</a><a href="#tymethod.gcd">gcd</a><a href="#tymethod.is_even">is_even</a><a href="#tymethod.is_multiple_of">is_multiple_of</a><a href="#tymethod.is_odd">is_odd</a><a href="#tymethod.lcm">lcm</a><a href="#tymethod.mod_floor">mod_floor</a></div><h3 class="sidebar-title"><a href="#provided-methods">Provided Methods</a></h3><div class="sidebar-links"><a href="#method.div_ceil">div_ceil</a><a href="#method.div_mod_floor">div_mod_floor</a><a href="#method.extended_gcd">extended_gcd</a><a href="#method.extended_gcd_lcm">extended_gcd_lcm</a><a href="#method.gcd_lcm">gcd_lcm</a><a href="#method.next_multiple_of">next_multiple_of</a><a href="#method.prev_multiple_of">prev_multiple_of</a></div><h3 class="sidebar-title"><a href="#foreign-impls">Implementations on Foreign Types</a></h3><div class="sidebar-links"><a href="#impl-Integer-for-i128">i128</a><a href="#impl-Integer-for-i16">i16</a><a href="#impl-Integer-for-i32">i32</a><a href="#impl-Integer-for-i64">i64</a><a href="#impl-Integer-for-i8">i8</a><a href="#impl-Integer-for-isize">isize</a><a href="#impl-Integer-for-u128">u128</a><a href="#impl-Integer-for-u16">u16</a><a href="#impl-Integer-for-u32">u32</a><a href="#impl-Integer-for-u64">u64</a><a href="#impl-Integer-for-u8">u8</a><a href="#impl-Integer-for-usize">usize</a></div><h3 class="sidebar-title"><a href="#implementors">Implementors</a></h3></div><h2 class="location">Other items in<br><a href="index.html">num_integer</a></h2><div id="sidebar-vars" data-name="Integer" data-ty="trait" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><div class="theme-picker"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img src="../brush.svg" width="18" height="18" alt="Pick another theme!"></button><div id="theme-choices" role="menu"></div></div><nav class="sub"><form class="search-form"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" disabled autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../settings.html" title="settings"><img src="../wheel.svg" width="18" height="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><button id="copy-path" onclick="copy_path(this)" title="copy path"><img src="../clipboard.svg" width="19" height="18" alt="Copy item import" title="Copy item import to clipboard"></button></span><span class="out-of-band"><span id="render-detail"><a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span><a class="srclink" href="../src/num_integer/lib.rs.html#37-346" 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/1.54.0/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/1.54.0/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a> + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> {
<details class="rustdoc-toggle type-contents-toggle"><summary class="hideme"><span>Show methods</span></summary> fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a>;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a>;
<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/1.54.0/std/primitive.bool.html">bool</a>;
<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/1.54.0/std/primitive.bool.html">bool</a>;
<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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a>;
fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self { ... }
<div class="item-spacer"></div> fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a> { ... }
<div class="item-spacer"></div> fn <a href="#method.extended_gcd" class="fnname">extended_gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a><br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.div_mod_floor" class="fnname">div_mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a> { ... }
<div class="item-spacer"></div> fn <a href="#method.next_multiple_of" class="fnname">next_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
<div class="item-spacer"></div> fn <a href="#method.prev_multiple_of" class="fnname">prev_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self<br>&nbsp;&nbsp;&nbsp; <span class="where">where<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>,
{ ... }
</details>}</pre></div><h2 id="required-methods" class="small-section-header">Required methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="tymethod.div_floor" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a class="srclink" href="../src/num_integer/lib.rs.html#54" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert!</span>(( <span class="number">8</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">8</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">3</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">3</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">0</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.mod_floor" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a class="srclink" href="../src/num_integer/lib.rs.html#78" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo, satisfying:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert!</span>(<span class="ident">n</span>.<span class="ident">div_floor</span>(<span class="kw-2">&amp;</span><span class="ident">d</span>) <span class="op">*</span> <span class="ident">d</span> <span class="op">+</span> <span class="ident">n</span>.<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="ident">d</span>) <span class="op">=</span><span class="op">=</span> <span class="ident">n</span>)</pre></div>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert!</span>(( <span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="op">&amp;</span> <span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="number">1</span>);
<span class="macro">assert!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>) <span class="op">=</span><span class="op">=</span> <span class="op">-</span><span class="number">1</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.gcd" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a class="srclink" href="../src/num_integer/lib.rs.html#114" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Greatest Common Divisor (GCD).</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">6</span>.<span class="ident">gcd</span>(<span class="kw-2">&amp;</span><span class="number">8</span>), <span class="number">2</span>);
<span class="macro">assert_eq!</span>(<span class="number">7</span>.<span class="ident">gcd</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">1</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.lcm" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a class="srclink" href="../src/num_integer/lib.rs.html#126" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Lowest Common Multiple (LCM).</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">7</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">21</span>);
<span class="macro">assert_eq!</span>(<span class="number">2</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">4</span>), <span class="number">4</span>);
<span class="macro">assert_eq!</span>(<span class="number">0</span>.<span class="ident">lcm</span>(<span class="kw-2">&amp;</span><span class="number">0</span>), <span class="number">0</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.divides" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#212" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.is_multiple_of" class="method has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#223" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is a multiple of <code>other</code>.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">9</span>.<span class="ident">is_multiple_of</span>(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="bool-val">true</span>);
<span class="macro">assert_eq!</span>(<span class="number">3</span>.<span class="ident">is_multiple_of</span>(<span class="kw-2">&amp;</span><span class="number">9</span>), <span class="bool-val">false</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.is_even" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#234" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is even.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">3</span>.<span class="ident">is_even</span>(), <span class="bool-val">false</span>);
<span class="macro">assert_eq!</span>(<span class="number">4</span>.<span class="ident">is_even</span>(), <span class="bool-val">true</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.is_odd" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#245" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is odd.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">3</span>.<span class="ident">is_odd</span>(), <span class="bool-val">true</span>);
<span class="macro">assert_eq!</span>(<span class="number">4</span>.<span class="ident">is_odd</span>(), <span class="bool-val">false</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="tymethod.div_rem" class="method has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#264" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), (<span class="op">-</span><span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), (<span class="op">-</span><span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_rem</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_rem</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));</pre></div>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle" open><summary><div id="method.div_ceil" class="method has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a class="srclink" href="../src/num_integer/lib.rs.html#96-103" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Ceiled integer division.</p>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">3</span>);
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), <span class="op">-</span><span class="number">2</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), <span class="number">3</span>);
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">1</span>);
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_ceil</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_ceil</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), <span class="number">1</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.gcd_lcm" class="method has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#142-144" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) together.</p>
<p>Potentially more efficient than calling <code>gcd</code> and <code>lcm</code>
individually for identical inputs.</p>
<h1 id="examples-9" class="section-header"><a href="#examples-9">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(<span class="number">10</span>.<span class="ident">gcd_lcm</span>(<span class="kw-2">&amp;</span><span class="number">4</span>), (<span class="number">2</span>, <span class="number">20</span>));
<span class="macro">assert_eq!</span>(<span class="number">8</span>.<span class="ident">gcd_lcm</span>(<span class="kw-2">&amp;</span><span class="number">9</span>), (<span class="number">1</span>, <span class="number">72</span>));</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.extended_gcd" class="method has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd" class="fnname">extended_gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h4><a class="srclink" href="../src/num_integer/lib.rs.html#165-200" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Greatest common divisor and Bézout coefficients.</p>
<h1 id="examples-10" class="section-header"><a href="#examples-10">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">fn</span> <span class="ident">check</span><span class="op">&lt;</span><span class="ident">A</span>: <span class="ident">Copy</span> <span class="op">+</span> <span class="ident">Integer</span> <span class="op">+</span> <span class="ident">NumAssign</span><span class="op">&gt;</span>(<span class="ident">a</span>: <span class="ident">A</span>, <span class="ident">b</span>: <span class="ident">A</span>) <span class="op">-</span><span class="op">&gt;</span> <span class="ident">bool</span> {
<span class="kw">let</span> <span class="ident">ExtendedGcd</span> { <span class="ident">gcd</span>, <span class="ident">x</span>, <span class="ident">y</span>, .. } <span class="op">=</span> <span class="ident">a</span>.<span class="ident">extended_gcd</span>(<span class="kw-2">&amp;</span><span class="ident">b</span>);
<span class="ident">gcd</span> <span class="op">=</span><span class="op">=</span> <span class="ident">x</span> <span class="op">*</span> <span class="ident">a</span> <span class="op">+</span> <span class="ident">y</span> <span class="op">*</span> <span class="ident">b</span>
}
<span class="macro">assert!</span>(<span class="ident">check</span>(<span class="number">10isize</span>, <span class="number">4isize</span>));
<span class="macro">assert!</span>(<span class="ident">check</span>(<span class="number">8isize</span>, <span class="number">9isize</span>));</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.extended_gcd_lcm" class="method has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> + <a class="trait" href="../num_traits/sign/trait.Signed.html" title="trait num_traits::sign::Signed">Signed</a>,&nbsp;</span></h4><a class="srclink" href="../src/num_integer/lib.rs.html#204-209" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Greatest common divisor, least common multiple, and Bézout coefficients.</p>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.div_mod_floor" class="method has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a class="srclink" href="../src/num_integer/lib.rs.html#283-285" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous floored integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h1 id="examples-11" class="section-header"><a href="#examples-11">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="number">2</span>));
<span class="macro">assert_eq!</span>(( <span class="number">8</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), (<span class="op">-</span><span class="number">3</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">3</span>), (<span class="op">-</span><span class="number">3</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">8</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">3</span>), ( <span class="number">2</span>, <span class="op">-</span><span class="number">2</span>));
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>(( <span class="number">1</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), (<span class="op">-</span><span class="number">1</span>, <span class="op">-</span><span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_mod_floor</span>( <span class="kw-2">&amp;</span><span class="number">2</span>), (<span class="op">-</span><span class="number">1</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">1</span>).<span class="ident">div_mod_floor</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">2</span>), ( <span class="number">0</span>, <span class="op">-</span><span class="number">1</span>));</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.next_multiple_of" class="method has-srclink"><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fnname">next_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h4><a class="srclink" href="../src/num_integer/lib.rs.html#307-318" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
<h1 id="notes" class="section-header"><a href="#notes">Notes</a></h1>
<p>For signed types, <code>a.next_multiple_of(b) = a.prev_multiple_of(b.neg())</code>.</p>
<h1 id="examples-12" class="section-header"><a href="#examples-12">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">next_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">24</span>);</pre></div>
</div></details><details class="rustdoc-toggle" open><summary><div id="method.prev_multiple_of" class="method has-srclink"><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fnname">prev_multiple_of</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Self: <a class="trait" href="https://doc.rust-lang.org/1.54.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h4><a class="srclink" href="../src/num_integer/lib.rs.html#340-345" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
<h1 id="notes-1" class="section-header"><a href="#notes-1">Notes</a></h1>
<p>For signed types, <code>a.prev_multiple_of(b) = a.next_multiple_of(b.neg())</code>.</p>
<h1 id="examples-13" class="section-header"><a href="#examples-13">Examples</a></h1>
<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="op">&amp;</span> <span class="number">8</span>), <span class="op">-</span><span class="number">24</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">16</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);
<span class="macro">assert_eq!</span>((<span class="op">-</span><span class="number">23</span>).<span class="ident">prev_multiple_of</span>(<span class="kw-2">&amp;</span><span class="op">-</span><span class="number">8</span>), <span class="op">-</span><span class="number">16</span>);</pre></div>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-i8" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i8.html">i8</a></h3><a href="#impl-Integer-for-i8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#791" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-i16" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i16.html">i16</a></h3><a href="#impl-Integer-for-i16" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-1" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-1" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-1" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#792" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-i32" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i32.html">i32</a></h3><a href="#impl-Integer-for-i32" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-2" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-2" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-2" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#793" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-i64" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i64.html">i64</a></h3><a href="#impl-Integer-for-i64" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-3" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-3" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-3" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#794" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-isize" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.isize.html">isize</a></h3><a href="#impl-Integer-for-isize" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-4" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-4" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-4" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#795" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-i128" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.i128.html">i128</a></h3><a href="#impl-Integer-for-i128" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_mod_floor-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_mod_floor-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always positive.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-5" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-5" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-5" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#797" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-u8" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u8.html">u8</a></h3><a href="#impl-Integer-for-u8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-6" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-6" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-6" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1008" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-u16" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u16.html">u16</a></h3><a href="#impl-Integer-for-u16" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-7" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-7" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-7" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1009" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-u32" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u32.html">u32</a></h3><a href="#impl-Integer-for-u32" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-8" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-8" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-8" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1010" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-u64" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.u64.html">u64</a></h3><a href="#impl-Integer-for-u64" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-9" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_even" class="fnname">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_even-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_odd-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fnname">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_odd-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_rem-9" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fnname">div_rem</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.div_rem-9" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><div id="method.div_ceil-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.div_ceil" class="fnname">div_ceil</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_ceil-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div><div id="method.extended_gcd_lcm-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fnname">extended_gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.extended_gcd_lcm-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1011" title="goto source code">[src]</a></div></div></details><details class="rustdoc-toggle implementors-toggle"><summary><div id="impl-Integer-for-usize" class="impl has-srclink"><h3 class="code-header in-band">impl <a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a> for <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.usize.html">usize</a></h3><a href="#impl-Integer-for-usize" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><div id="method.div_floor-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fnname">div_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.div_floor-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.mod_floor-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fnname">mod_floor</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.mod_floor-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.gcd" class="fnname">gcd</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.gcd-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.lcm-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.lcm" class="fnname">lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; Self</h4><a href="#method.lcm-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.gcd_lcm-11" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fnname">gcd_lcm</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">(</a>Self, Self<a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.tuple.html">)</a></h4><a href="#method.gcd_lcm-11" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) and
Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.divides-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href="#tymethod.divides" class="fnname">divides</a>(&amp;self, other: <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.divides-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_multiple_of-10" class="method trait-impl has-srclink"><h4 class="code-header">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/1.54.0/std/primitive.reference.html">&amp;</a>Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.54.0/std/primitive.bool.html">bool</a></h4><a href="#method.is_multiple_of-10" class="anchor"></a><a class="srclink" href="../src/num_integer/lib.rs.html#1012" title="goto source code">[src]</a></div></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><div id="method.is_even-10" class="method trait-impl has-srclink"><h4 class="code-header">fn <a href=