12 lines
7.3 KiB
HTML
12 lines
7.3 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="Integer trait and functions."><title>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="../crates.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 mod crate"><!--[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="#">Crate num_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"><ul class="block"><li><a id="all-types" href="all.html">All Items</a></li></ul><section id="rustdoc-toc"><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#compatibility" title="Compatibility">Compatibility</a></li></ul><h3><a href="#structs">Crate Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"></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"><h1>Crate <span>num_<wbr>integer</span> <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#11-1386">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Integer trait and functions.</p>
|
||
<h3 id="compatibility"><a class="doc-anchor" href="#compatibility">§</a>Compatibility</h3>
|
||
<p>The <code>num-integer</code> crate is tested for rustc 1.31 and greater.</p>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ExtendedGcd.html" title="struct num_integer::ExtendedGcd">Extended<wbr>Gcd</a></dt><dd>Greatest common divisor and Bézout coefficients</dd><dt><a class="struct" href="struct.IterBinomial.html" title="struct num_integer::IterBinomial">Iter<wbr>Binomial</a></dt><dd>An iterator over binomial coefficients.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.Average.html" title="trait num_integer::Average">Average</a></dt><dd>Provides methods to compute the average of two integers, without overflows.</dd><dt><a class="trait" href="trait.Integer.html" title="trait num_integer::Integer">Integer</a></dt><dt><a class="trait" href="trait.Roots.html" title="trait num_integer::Roots">Roots</a></dt><dd>Provides methods to compute an integer’s square root, cube root,
|
||
and arbitrary <code>n</code>th root.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.average_ceil.html" title="fn num_integer::average_ceil">average_<wbr>ceil</a></dt><dd>Returns the ceiling value of the average of <code>x</code> and <code>y</code> –
|
||
see <a href="trait.Average.html#tymethod.average_ceil">Average::average_ceil</a>.</dd><dt><a class="fn" href="fn.average_floor.html" title="fn num_integer::average_floor">average_<wbr>floor</a></dt><dd>Returns the floor value of the average of <code>x</code> and <code>y</code> –
|
||
see <a href="trait.Average.html#tymethod.average_floor">Average::average_floor</a>.</dd><dt><a class="fn" href="fn.binomial.html" title="fn num_integer::binomial">binomial</a></dt><dd>Calculate the binomial coefficient.</dd><dt><a class="fn" href="fn.cbrt.html" title="fn num_integer::cbrt">cbrt</a></dt><dd>Returns the truncated principal cube root of an integer –
|
||
see <a href="trait.Roots.html#method.cbrt">Roots::cbrt</a>.</dd><dt><a class="fn" href="fn.div_ceil.html" title="fn num_integer::div_ceil">div_<wbr>ceil</a></dt><dd>Ceiled integer division</dd><dt><a class="fn" href="fn.div_floor.html" title="fn num_integer::div_floor">div_<wbr>floor</a></dt><dd>Floored integer division</dd><dt><a class="fn" href="fn.div_mod_floor.html" title="fn num_integer::div_mod_floor">div_<wbr>mod_<wbr>floor</a></dt><dd>Simultaneous floored integer division and modulus</dd><dt><a class="fn" href="fn.div_rem.html" title="fn num_integer::div_rem">div_rem</a></dt><dd>Simultaneous integer division and modulus</dd><dt><a class="fn" href="fn.gcd.html" title="fn num_integer::gcd">gcd</a></dt><dd>Calculates the Greatest Common Divisor (GCD) of the number and <code>other</code>. The
|
||
result is always non-negative.</dd><dt><a class="fn" href="fn.gcd_lcm.html" title="fn num_integer::gcd_lcm">gcd_lcm</a></dt><dd>Calculates the Greatest Common Divisor (GCD) and
|
||
Lowest Common Multiple (LCM) of the number and <code>other</code>.</dd><dt><a class="fn" href="fn.lcm.html" title="fn num_integer::lcm">lcm</a></dt><dd>Calculates the Lowest Common Multiple (LCM) of the number and <code>other</code>.</dd><dt><a class="fn" href="fn.mod_floor.html" title="fn num_integer::mod_floor">mod_<wbr>floor</a></dt><dd>Floored integer modulus</dd><dt><a class="fn" href="fn.multinomial.html" title="fn num_integer::multinomial">multinomial</a></dt><dd>Calculate the multinomial coefficient.</dd><dt><a class="fn" href="fn.nth_root.html" title="fn num_integer::nth_root">nth_<wbr>root</a></dt><dd>Returns the truncated principal <code>n</code>th root of an integer –
|
||
see <a href="trait.Roots.html#tymethod.nth_root">Roots::nth_root</a>.</dd><dt><a class="fn" href="fn.sqrt.html" title="fn num_integer::sqrt">sqrt</a></dt><dd>Returns the truncated principal square root of an integer –
|
||
see <a href="trait.Roots.html#method.sqrt">Roots::sqrt</a>.</dd></dl></section></div></main></body></html> |