Files
GopherGate/target/doc/num_integer/trait.Integer.html
2026-02-26 12:00:21 -05:00

304 lines
116 KiB
HTML

<!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`."><title>Integer in num_integer - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../static.files/rustdoc-ca0dd0c4.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="num_integer" data-themes="" data-resource-suffix="" data-rustdoc-version="1.93.1 (01f6ddf75 2026-02-11) (Arch Linux rust 1:1.93.1-1)" data-channel="1.93.1" data-search-js="search-9e2438ea.js" data-stringdex-js="stringdex-a3946164.js" data-settings-js="settings-c38705f0.js" ><script src="../static.files/storage-e2aeef58.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-a410ff4d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-263c88ec.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Integer</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../num_integer/index.html">num_<wbr>integer</a><span class="version">0.1.46</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Integer</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.div_floor" title="div_floor">div_floor</a></li><li><a href="#tymethod.div_rem" title="div_rem">div_rem</a></li><li><a href="#tymethod.gcd" title="gcd">gcd</a></li><li><a href="#tymethod.is_even" title="is_even">is_even</a></li><li><a href="#tymethod.is_multiple_of" title="is_multiple_of">is_multiple_of</a></li><li><a href="#tymethod.is_odd" title="is_odd">is_odd</a></li><li><a href="#tymethod.lcm" title="lcm">lcm</a></li><li><a href="#tymethod.mod_floor" title="mod_floor">mod_floor</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.dec" title="dec">dec</a></li><li><a href="#method.div_ceil" title="div_ceil">div_ceil</a></li><li><a href="#method.div_mod_floor" title="div_mod_floor">div_mod_floor</a></li><li><a href="#method.divides" title="divides">divides</a></li><li><a href="#method.extended_gcd" title="extended_gcd">extended_gcd</a></li><li><a href="#method.extended_gcd_lcm" title="extended_gcd_lcm">extended_gcd_lcm</a></li><li><a href="#method.gcd_lcm" title="gcd_lcm">gcd_lcm</a></li><li><a href="#method.inc" title="inc">inc</a></li><li><a href="#method.next_multiple_of" title="next_multiple_of">next_multiple_of</a></li><li><a href="#method.prev_multiple_of" title="prev_multiple_of">prev_multiple_of</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Integer-for-i8" title="i8">i8</a></li><li><a href="#impl-Integer-for-i16" title="i16">i16</a></li><li><a href="#impl-Integer-for-i32" title="i32">i32</a></li><li><a href="#impl-Integer-for-i64" title="i64">i64</a></li><li><a href="#impl-Integer-for-i128" title="i128">i128</a></li><li><a href="#impl-Integer-for-isize" title="isize">isize</a></li><li><a href="#impl-Integer-for-u8" title="u8">u8</a></li><li><a href="#impl-Integer-for-u16" title="u16">u16</a></li><li><a href="#impl-Integer-for-u32" title="u32">u32</a></li><li><a href="#impl-Integer-for-u64" title="u64">u64</a></li><li><a href="#impl-Integer-for-u128" title="u128">u128</a></li><li><a href="#impl-Integer-for-usize" title="usize">usize</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="index.html">In crate num_<wbr>integer</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="index.html">num_integer</a></div><h1>Trait <span class="trait">Integer</span>&nbsp;<button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../src/num_integer/lib.rs.html#33-376">Source</a> </span></div><pre class="rust item-decl"><code>pub trait Integer:
<a class="trait" href="https://doc.rust-lang.org/1.93.1/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.93.1/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>
+ <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> {
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 18 methods</span></summary> // Required methods
fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self);
// Provided methods
fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self { ... }
<span class="item-spacer"></span> fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self) { ... }
<span class="item-spacer"></span> fn <a href="#method.extended_gcd" class="fn">extended_gcd</a>(&amp;self, other: &amp;Self) -&gt; <a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/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> { ... }
<span class="item-spacer"></span> fn <a href="#method.divides" class="fn">divides</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self) { ... }
<span class="item-spacer"></span> fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.dec" class="fn">dec</a>(&amp;mut self)
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span> { ... }
<span class="item-spacer"></span> fn <a href="#method.inc" class="fn">inc</a>(&amp;mut self)
<span class="where">where Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span> { ... }
</details>}</code></pre><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.div_floor" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#50">Source</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division.</p>
<h5 id="examples"><a class="doc-anchor" href="#examples">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(( <span class="number">8</span>).div_floor(&amp; <span class="number">3</span>) == <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">8</span>).div_floor(<span class="kw-2">&amp;</span>-<span class="number">3</span>) == -<span class="number">3</span>);
<span class="macro">assert!</span>((-<span class="number">8</span>).div_floor(&amp; <span class="number">3</span>) == -<span class="number">3</span>);
<span class="macro">assert!</span>((-<span class="number">8</span>).div_floor(<span class="kw-2">&amp;</span>-<span class="number">3</span>) == <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).div_floor(&amp; <span class="number">2</span>) == <span class="number">0</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).div_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>) == -<span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">1</span>).div_floor(&amp; <span class="number">2</span>) == -<span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">1</span>).div_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>) == <span class="number">0</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.mod_floor" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#74">Source</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo, satisfying:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(n.div_floor(<span class="kw-2">&amp;</span>d) * d + n.mod_floor(<span class="kw-2">&amp;</span>d) == n)</code></pre></div><h5 id="examples-1"><a class="doc-anchor" href="#examples-1">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert!</span>(( <span class="number">8</span>).mod_floor(&amp; <span class="number">3</span>) == <span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">8</span>).mod_floor(<span class="kw-2">&amp;</span>-<span class="number">3</span>) == -<span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">8</span>).mod_floor(&amp; <span class="number">3</span>) == <span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">8</span>).mod_floor(<span class="kw-2">&amp;</span>-<span class="number">3</span>) == -<span class="number">2</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).mod_floor(&amp; <span class="number">2</span>) == <span class="number">1</span>);
<span class="macro">assert!</span>(( <span class="number">1</span>).mod_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>) == -<span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">1</span>).mod_floor(&amp; <span class="number">2</span>) == <span class="number">1</span>);
<span class="macro">assert!</span>((-<span class="number">1</span>).mod_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>) == -<span class="number">1</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.gcd" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#110">Source</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Greatest Common Divisor (GCD).</p>
<h5 id="examples-2"><a class="doc-anchor" href="#examples-2">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">6</span>.gcd(<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>.gcd(<span class="kw-2">&amp;</span><span class="number">3</span>), <span class="number">1</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.lcm" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#122">Source</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Lowest Common Multiple (LCM).</p>
<h5 id="examples-3"><a class="doc-anchor" href="#examples-3">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">7</span>.lcm(<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>.lcm(<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>.lcm(<span class="kw-2">&amp;</span><span class="number">0</span>), <span class="number">0</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_multiple_of" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#219">Source</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if <code>self</code> is a multiple of <code>other</code>.</p>
<h5 id="examples-4"><a class="doc-anchor" href="#examples-4">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">9</span>.is_multiple_of(<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>.is_multiple_of(<span class="kw-2">&amp;</span><span class="number">9</span>), <span class="bool-val">false</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_even" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#230">Source</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is even.</p>
<h5 id="examples-5"><a class="doc-anchor" href="#examples-5">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">3</span>.is_even(), <span class="bool-val">false</span>);
<span class="macro">assert_eq!</span>(<span class="number">4</span>.is_even(), <span class="bool-val">true</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_odd" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#241">Source</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is odd.</p>
<h5 id="examples-6"><a class="doc-anchor" href="#examples-6">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">3</span>.is_odd(), <span class="bool-val">true</span>);
<span class="macro">assert_eq!</span>(<span class="number">4</span>.is_odd(), <span class="bool-val">false</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="tymethod.div_rem" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#260">Source</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h5 id="examples-7"><a class="doc-anchor" href="#examples-7">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(( <span class="number">8</span>).div_rem( <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>).div_rem(<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>).div_rem( <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>).div_rem(<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">1</span>).div_rem( <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>).div_rem(<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>).div_rem( <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>).div_rem(<span class="kw-2">&amp;</span>-<span class="number">2</span>), ( <span class="number">0</span>, -<span class="number">1</span>));</code></pre></div></div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.div_ceil" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#92-99">Source</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Ceiled integer division.</p>
<h5 id="examples-8"><a class="doc-anchor" href="#examples-8">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(( <span class="number">8</span>).div_ceil( <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>).div_ceil(<span class="kw-2">&amp;</span>-<span class="number">3</span>), -<span class="number">2</span>);
<span class="macro">assert_eq!</span>((-<span class="number">8</span>).div_ceil( <span class="kw-2">&amp;</span><span class="number">3</span>), -<span class="number">2</span>);
<span class="macro">assert_eq!</span>((-<span class="number">8</span>).div_ceil(<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">1</span>).div_ceil( <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>).div_ceil(<span class="kw-2">&amp;</span>-<span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq!</span>((-<span class="number">1</span>).div_ceil( <span class="kw-2">&amp;</span><span class="number">2</span>), <span class="number">0</span>);
<span class="macro">assert_eq!</span>((-<span class="number">1</span>).div_ceil(<span class="kw-2">&amp;</span>-<span class="number">2</span>), <span class="number">1</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#138-140">Source</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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>
<h5 id="examples-9"><a class="doc-anchor" href="#examples-9">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(<span class="number">10</span>.gcd_lcm(<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>.gcd_lcm(<span class="kw-2">&amp;</span><span class="number">9</span>), (<span class="number">1</span>, <span class="number">72</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.extended_gcd" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#159-192">Source</a><h4 class="code-header">fn <a href="#method.extended_gcd" class="fn">extended_gcd</a>(&amp;self, other: &amp;Self) -&gt; <a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Greatest common divisor and Bézout coefficients.</p>
<h5 id="examples-10"><a class="doc-anchor" href="#examples-10">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">fn </span>check&lt;A: Copy + Integer + NumAssign&gt;(a: A, b: A) -&gt; bool {
<span class="kw">let </span>ExtendedGcd { gcd, x, y, .. } = a.extended_gcd(<span class="kw-2">&amp;</span>b);
gcd == x * a + y * b
}
<span class="macro">assert!</span>(check(<span class="number">10isize</span>, <span class="number">4isize</span>));
<span class="macro">assert!</span>(check(<span class="number">8isize</span>, <span class="number">9isize</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.extended_gcd_lcm" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#196-201">Source</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/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>,</div></h4></section></summary><div class="docblock"><p>Greatest common divisor, least common multiple, and Bézout coefficients.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.divides" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#206-208">Source</a><h4 class="code-header">fn <a href="#method.divides" class="fn">divides</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated: Please use is_multiple_of instead</span></div></span></summary><div class="docblock"><p>Deprecated, use <code>is_multiple_of</code> instead.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#279-281">Source</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous floored integer division and modulus.
Returns <code>(quotient, remainder)</code>.</p>
<h5 id="examples-11"><a class="doc-anchor" href="#examples-11">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(( <span class="number">8</span>).div_mod_floor( <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>).div_mod_floor(<span class="kw-2">&amp;</span>-<span class="number">3</span>), (-<span class="number">3</span>, -<span class="number">1</span>));
<span class="macro">assert_eq!</span>((-<span class="number">8</span>).div_mod_floor( <span class="kw-2">&amp;</span><span class="number">3</span>), (-<span class="number">3</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>((-<span class="number">8</span>).div_mod_floor(<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">1</span>).div_mod_floor( <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>).div_mod_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>), (-<span class="number">1</span>, -<span class="number">1</span>));
<span class="macro">assert_eq!</span>((-<span class="number">1</span>).div_mod_floor( <span class="kw-2">&amp;</span><span class="number">2</span>), (-<span class="number">1</span>, <span class="number">1</span>));
<span class="macro">assert_eq!</span>((-<span class="number">1</span>).div_mod_floor(<span class="kw-2">&amp;</span>-<span class="number">2</span>), ( <span class="number">0</span>, -<span class="number">1</span>));</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#303-314">Source</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
<h5 id="notes"><a class="doc-anchor" href="#notes">§</a>Notes</h5>
<p>For signed types, <code>a.next_multiple_of(b) = a.prev_multiple_of(b.neg())</code>.</p>
<h5 id="examples-12"><a class="doc-anchor" href="#examples-12">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(( <span class="number">16</span>).next_multiple_of(&amp; <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).next_multiple_of(&amp; <span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).next_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).next_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">16</span>).next_multiple_of(&amp; <span class="number">8</span>), -<span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">23</span>).next_multiple_of(&amp; <span class="number">8</span>), -<span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">16</span>).next_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), -<span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">23</span>).next_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), -<span class="number">24</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#336-341">Source</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
<h5 id="notes-1"><a class="doc-anchor" href="#notes-1">§</a>Notes</h5>
<p>For signed types, <code>a.prev_multiple_of(b) = a.next_multiple_of(b.neg())</code>.</p>
<h5 id="examples-13"><a class="doc-anchor" href="#examples-13">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="macro">assert_eq!</span>(( <span class="number">16</span>).prev_multiple_of(&amp; <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).prev_multiple_of(&amp; <span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">16</span>).prev_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), <span class="number">16</span>);
<span class="macro">assert_eq!</span>(( <span class="number">23</span>).prev_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), <span class="number">24</span>);
<span class="macro">assert_eq!</span>((-<span class="number">16</span>).prev_multiple_of(&amp; <span class="number">8</span>), -<span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">23</span>).prev_multiple_of(&amp; <span class="number">8</span>), -<span class="number">24</span>);
<span class="macro">assert_eq!</span>((-<span class="number">16</span>).prev_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), -<span class="number">16</span>);
<span class="macro">assert_eq!</span>((-<span class="number">23</span>).prev_multiple_of(<span class="kw-2">&amp;</span>-<span class="number">8</span>), -<span class="number">16</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.dec" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#353-358">Source</a><h4 class="code-header">fn <a href="#method.dec" class="fn">dec</a>(&amp;mut self)<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Decrements self by one.</p>
<h5 id="examples-14"><a class="doc-anchor" href="#examples-14">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x: i32 = <span class="number">43</span>;
x.dec();
<span class="macro">assert_eq!</span>(x, <span class="number">42</span>);</code></pre></div></div></details><details class="toggle method-toggle" open><summary><section id="method.inc" class="method"><a class="src rightside" href="../src/num_integer/lib.rs.html#370-375">Source</a><h4 class="code-header">fn <a href="#method.inc" class="fn">inc</a>(&amp;mut self)<div class="where">where
Self: <a class="trait" href="https://doc.rust-lang.org/1.93.1/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Increments self by one.</p>
<h5 id="examples-15"><a class="doc-anchor" href="#examples-15">§</a>Examples</h5>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">let </span><span class="kw-2">mut </span>x: i32 = <span class="number">41</span>;
x.inc();
<span class="macro">assert_eq!</span>(x, <span class="number">42</span>);</code></pre></div></div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/1.93.1/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-i8" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#impl-Integer-for-i8" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.i8.html">i8</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.div_floor" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.mod_floor" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.div_mod_floor-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.gcd" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.lcm" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.gcd_lcm-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.is_multiple_of" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.is_even" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.is_odd" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.div_rem" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.next_multiple_of-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.prev_multiple_of-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.div_ceil-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#841">Source</a><a href="#method.extended_gcd_lcm-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-i16" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#impl-Integer-for-i16" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.i16.html">i16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.div_floor-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.mod_floor-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.div_mod_floor-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.gcd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.lcm-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.gcd_lcm-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.is_multiple_of-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.is_even-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.is_odd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-1" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.div_rem-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.next_multiple_of-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.prev_multiple_of-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.div_ceil-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#842">Source</a><a href="#method.extended_gcd_lcm-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-i32" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#impl-Integer-for-i32" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.i32.html">i32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.div_floor-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.mod_floor-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.div_mod_floor-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.gcd-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.lcm-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.gcd_lcm-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.is_multiple_of-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.is_even-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.is_odd-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-2" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.div_rem-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.next_multiple_of-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.prev_multiple_of-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.div_ceil-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#843">Source</a><a href="#method.extended_gcd_lcm-3" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-i64" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#impl-Integer-for-i64" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.i64.html">i64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.div_floor-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.mod_floor-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.div_mod_floor-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.gcd-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.lcm-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.gcd_lcm-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.is_multiple_of-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.is_even-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.is_odd-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-3" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.div_rem-3" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.next_multiple_of-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.prev_multiple_of-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.div_ceil-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#844">Source</a><a href="#method.extended_gcd_lcm-4" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-i128" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#impl-Integer-for-i128" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.i128.html">i128</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.div_floor-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.mod_floor-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.div_mod_floor-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.gcd-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.lcm-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.gcd_lcm-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.is_multiple_of-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.is_even-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.is_odd-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-4" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.div_rem-4" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.next_multiple_of-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.prev_multiple_of-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.div_ceil-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#845">Source</a><a href="#method.extended_gcd_lcm-5" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-isize" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#impl-Integer-for-isize" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.isize.html">isize</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.div_floor-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer division</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.mod_floor-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Floored integer modulo</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_mod_floor-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.div_mod_floor-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_mod_floor" class="fn">div_mod_floor</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Calculates <code>div_floor</code> and <code>mod_floor</code> simultaneously</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.gcd-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and
<code>other</code>. The result is always non-negative.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.lcm-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and
<code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.gcd_lcm-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.is_multiple_of-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.is_even-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.is_odd-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-5" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.div_rem-5" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.next_multiple_of-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.next_multiple_of-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.next_multiple_of" class="fn">next_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds up to nearest multiple of argument.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.prev_multiple_of-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.prev_multiple_of-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.prev_multiple_of" class="fn">prev_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Rounds down to nearest multiple of argument.</p>
</div></details><section id="method.div_ceil-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.div_ceil-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#846">Source</a><a href="#method.extended_gcd_lcm-6" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-u8" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#impl-Integer-for-u8" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.u8.html">u8</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.div_floor-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.mod_floor-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.gcd-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.lcm-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.gcd_lcm-7" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.is_multiple_of-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.is_even-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.is_odd-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-6" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.div_rem-6" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.div_ceil-7" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1052">Source</a><a href="#method.extended_gcd_lcm-7" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-u16" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#impl-Integer-for-u16" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.u16.html">u16</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.div_floor-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.mod_floor-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.gcd-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.lcm-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.gcd_lcm-8" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.is_multiple_of-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.is_even-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.is_odd-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-7" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.div_rem-7" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.div_ceil-8" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1053">Source</a><a href="#method.extended_gcd_lcm-8" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-u32" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#impl-Integer-for-u32" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.u32.html">u32</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.div_floor-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.mod_floor-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.gcd-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.lcm-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.gcd_lcm-9" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.is_multiple_of-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.is_even-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.is_odd-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-8" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.div_rem-8" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.div_ceil-9" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1054">Source</a><a href="#method.extended_gcd_lcm-9" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-u64" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#impl-Integer-for-u64" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.u64.html">u64</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.div_floor-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.mod_floor-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.gcd-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.lcm-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.gcd_lcm-10" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.is_multiple_of-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.is_even-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.is_odd-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-9" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.div_rem-9" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.div_ceil-10" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1055">Source</a><a href="#method.extended_gcd_lcm-10" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-u128" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#impl-Integer-for-u128" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.u128.html">u128</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.div_floor-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.mod_floor-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.gcd-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.lcm-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.gcd_lcm-11" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.is_multiple_of-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.is_even-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.is_odd-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-10" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.div_rem-10" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.div_ceil-11" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1056">Source</a><a href="#method.extended_gcd_lcm-11" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Integer-for-usize" class="impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#impl-Integer-for-usize" class="anchor">§</a><h3 class="code-header">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.93.1/std/primitive.usize.html">usize</a></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.div_floor-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.div_floor-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_floor" class="fn">div_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer division. Returns the same result as <code>div</code> (<code>/</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.mod_floor-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.mod_floor-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.mod_floor" class="fn">mod_floor</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Unsigned integer modulo operation. Returns the same result as <code>rem</code> (<code>%</code>).</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.gcd-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.gcd" class="fn">gcd</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code></p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.lcm-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.lcm-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.lcm" class="fn">lcm</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section></summary><div class="docblock"><p>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.gcd_lcm-12" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.gcd_lcm-12" class="anchor">§</a><h4 class="code-header">fn <a href="#method.gcd_lcm" class="fn">gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></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="toggle method-toggle" open><summary><section id="method.is_multiple_of-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.is_multiple_of-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_multiple_of" class="fn">is_multiple_of</a>(&amp;self, other: &amp;Self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is a multiple of <code>other</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_even-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.is_even-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_even" class="fn">is_even</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_odd-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.is_odd-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.is_odd" class="fn">is_odd</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.93.1/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns <code>true</code> if the number is not divisible by <code>2</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.div_rem-11" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.div_rem-11" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.div_rem" class="fn">div_rem</a>(&amp;self, other: &amp;Self) -&gt; (Self, Self)</h4></section></summary><div class="docblock"><p>Simultaneous truncated integer division and modulus.</p>
</div></details><section id="method.div_ceil-12" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.div_ceil-12" class="anchor">§</a><h4 class="code-header">fn <a href="#method.div_ceil" class="fn">div_ceil</a>(&amp;self, other: &amp;Self) -&gt; Self</h4></section><section id="method.extended_gcd_lcm-12" class="method trait-impl"><a class="src rightside" href="../src/num_integer/lib.rs.html#1057">Source</a><a href="#method.extended_gcd_lcm-12" class="anchor">§</a><h4 class="code-header">fn <a href="#method.extended_gcd_lcm" class="fn">extended_gcd_lcm</a>(&amp;self, other: &amp;Self) -&gt; (<a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">ExtendedGcd</a>&lt;Self&gt;, Self)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../trait.impl/num_integer/trait.Integer.js" data-ignore-extern-crates="std" async></script></section></div></main></body></html>