mentat/num_traits/trait.PrimInt.html
2018-08-22 17:04:13 +00:00

495 lines
No EOL
112 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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 `PrimInt` trait in crate `num_traits`.">
<meta name="keywords" content="rust, rustlang, rust-lang, PrimInt">
<title>num_traits::PrimInt - Rust</title>
<link rel="stylesheet" type="text/css" href="../normalize.css">
<link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle">
<link rel="stylesheet" type="text/css" href="../dark.css">
<link rel="stylesheet" type="text/css" href="../main.css" id="themeStyle">
<script src="../storage.js"></script>
</head>
<body class="rustdoc trait">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<div class="sidebar-menu">&#9776;</div>
<p class='location'>Trait PrimInt</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.count_ones">count_ones</a><a href="#tymethod.count_zeros">count_zeros</a><a href="#tymethod.leading_zeros">leading_zeros</a><a href="#tymethod.trailing_zeros">trailing_zeros</a><a href="#tymethod.rotate_left">rotate_left</a><a href="#tymethod.rotate_right">rotate_right</a><a href="#tymethod.signed_shl">signed_shl</a><a href="#tymethod.signed_shr">signed_shr</a><a href="#tymethod.unsigned_shl">unsigned_shl</a><a href="#tymethod.unsigned_shr">unsigned_shr</a><a href="#tymethod.swap_bytes">swap_bytes</a><a href="#tymethod.from_be">from_be</a><a href="#tymethod.from_le">from_le</a><a href="#tymethod.to_be">to_be</a><a href="#tymethod.to_le">to_le</a><a href="#tymethod.pow">pow</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-PrimInt">usize</a><a href="#impl-PrimInt">u32</a><a href="#impl-PrimInt">i32</a><a href="#impl-PrimInt">i16</a><a href="#impl-PrimInt">i64</a><a href="#impl-PrimInt">isize</a><a href="#impl-PrimInt">u8</a><a href="#impl-PrimInt">u64</a><a href="#impl-PrimInt">u16</a><a href="#impl-PrimInt">i8</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>num_traits</a></p><script>window.sidebarCurrent = {name: 'PrimInt', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script></div>
</nav>
<div class="theme-picker">
<button id="theme-picker" aria-label="Pick another theme!">
<img src="../brush.svg" width="18" alt="Pick another theme!">
</button>
<div id="theme-choices"></div>
</div>
<script src="../theme.js"></script>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press S to search, ? for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content">
<h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>num_traits</a>::<wbr><a class="trait" href=''>PrimInt</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>&#x2212;</span>]
</a>
</span><a class='srclink' href='../src/num_traits/int.rs.html#8-278' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait PrimInt: <a class="trait" href="../num_traits/ops/saturating/trait.Saturating.html" title="trait num_traits::ops::saturating::Saturating">Saturating</a> + <a class="trait" href="../num_traits/ops/checked/trait.CheckedAdd.html" title="trait num_traits::ops::checked::CheckedAdd">CheckedAdd</a>&lt;Output = Self&gt; + <a class="trait" href="../num_traits/ops/checked/trait.CheckedSub.html" title="trait num_traits::ops::checked::CheckedSub">CheckedSub</a>&lt;Output = Self&gt; + <a class="trait" href="../num_traits/ops/checked/trait.CheckedMul.html" title="trait num_traits::ops::checked::CheckedMul">CheckedMul</a>&lt;Output = Self&gt; + <a class="trait" href="../num_traits/ops/checked/trait.CheckedDiv.html" title="trait num_traits::ops::checked::CheckedDiv">CheckedDiv</a>&lt;Output = Self&gt; + <a class="trait" href="../num_traits/bounds/trait.Bounded.html" title="trait num_traits::bounds::Bounded">Bounded</a> + <a class="trait" href="../num_traits/cast/trait.NumCast.html" title="trait num_traits::cast::NumCast">NumCast</a> + <a class="trait" href="../num_traits/trait.Num.html" title="trait num_traits::Num">Num</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Not.html" title="trait core::ops::bit::Not">Not</a>&lt;Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitAnd.html" title="trait core::ops::bit::BitAnd">BitAnd</a>&lt;Self, Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitOr.html" title="trait core::ops::bit::BitOr">BitOr</a>&lt;Self, Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.BitXor.html" title="trait core::ops::bit::BitXor">BitXor</a>&lt;Self, Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Shl.html" title="trait core::ops::bit::Shl">Shl</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/bit/trait.Shr.html" title="trait core::ops::bit::Shr">Shr</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, Output = Self&gt; + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.PartialOrd.html" title="trait core::cmp::PartialOrd">PartialOrd</a>&lt;Self&gt; {
fn <a href='#tymethod.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>;
<div class='item-spacer'></div> fn <a href='#tymethod.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_be' class='fnname'>from_be</a>(x: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.from_le' class='fnname'>from_le</a>(x: Self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.to_be' class='fnname'>to_be</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.to_le' class='fnname'>to_le</a>(self) -&gt; Self;
<div class='item-spacer'></div> fn <a href='#tymethod.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self;
}</pre>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.count_ones' class='method'><span id='count_ones.v' class='invisible'><code>fn <a href='#tymethod.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h3><div class='docblock'><p>Returns the number of ones in the binary representation of <code>self</code>.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0b01001100u8</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">count_ones</span>(), <span class="number">3</span>);</pre>
</div><h3 id='tymethod.count_zeros' class='method'><span id='count_zeros.v' class='invisible'><code>fn <a href='#tymethod.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h3><div class='docblock'><p>Returns the number of zeros in the binary representation of <code>self</code>.</p>
<h1 id="examples-1" class="section-header"><a href="#examples-1">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0b01001100u8</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">count_zeros</span>(), <span class="number">5</span>);</pre>
</div><h3 id='tymethod.leading_zeros' class='method'><span id='leading_zeros.v' class='invisible'><code>fn <a href='#tymethod.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h3><div class='docblock'><p>Returns the number of leading zeros in the binary representation
of <code>self</code>.</p>
<h1 id="examples-2" class="section-header"><a href="#examples-2">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0b0101000u16</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">leading_zeros</span>(), <span class="number">10</span>);</pre>
</div><h3 id='tymethod.trailing_zeros' class='method'><span id='trailing_zeros.v' class='invisible'><code>fn <a href='#tymethod.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span></h3><div class='docblock'><p>Returns the number of trailing zeros in the binary representation
of <code>self</code>.</p>
<h1 id="examples-3" class="section-header"><a href="#examples-3">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0b0101000u16</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">trailing_zeros</span>(), <span class="number">3</span>);</pre>
</div><h3 id='tymethod.rotate_left' class='method'><span id='rotate_left.v' class='invisible'><code>fn <a href='#tymethod.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the left by a specified amount amount, <code>n</code>, wrapping
the truncated bits to the end of the resulting integer.</p>
<h1 id="examples-4" class="section-header"><a href="#examples-4">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0x3456789ABCDEF012u64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">rotate_left</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.rotate_right' class='method'><span id='rotate_right.v' class='invisible'><code>fn <a href='#tymethod.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the right by a specified amount amount, <code>n</code>, wrapping
the truncated bits to the beginning of the resulting integer.</p>
<h1 id="examples-5" class="section-header"><a href="#examples-5">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0xDEF0123456789ABCu64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">rotate_right</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.signed_shl' class='method'><span id='signed_shl.v' class='invisible'><code>fn <a href='#tymethod.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the left by a specified amount amount, <code>n</code>, filling
zeros in the least significant bits.</p>
<p>This is bitwise equivalent to signed <code>Shl</code>.</p>
<h1 id="examples-6" class="section-header"><a href="#examples-6">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0x3456789ABCDEF000u64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">signed_shl</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.signed_shr' class='method'><span id='signed_shr.v' class='invisible'><code>fn <a href='#tymethod.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the right by a specified amount amount, <code>n</code>, copying
the &quot;sign bit&quot; in the most significant bits even for unsigned types.</p>
<p>This is bitwise equivalent to signed <code>Shr</code>.</p>
<h1 id="examples-7" class="section-header"><a href="#examples-7">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0xFEDCBA9876543210u64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0xFFFFEDCBA9876543u64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">signed_shr</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.unsigned_shl' class='method'><span id='unsigned_shl.v' class='invisible'><code>fn <a href='#tymethod.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the left by a specified amount amount, <code>n</code>, filling
zeros in the least significant bits.</p>
<p>This is bitwise equivalent to unsigned <code>Shl</code>.</p>
<h1 id="examples-8" class="section-header"><a href="#examples-8">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFi64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0x3456789ABCDEF000i64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">unsigned_shl</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.unsigned_shr' class='method'><span id='unsigned_shr.v' class='invisible'><code>fn <a href='#tymethod.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Shifts the bits to the right by a specified amount amount, <code>n</code>, filling
zeros in the most significant bits.</p>
<p>This is bitwise equivalent to unsigned <code>Shr</code>.</p>
<h1 id="examples-9" class="section-header"><a href="#examples-9">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0xFEDCBA9876543210i64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0x000FEDCBA9876543i64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">unsigned_shr</span>(<span class="number">12</span>), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.swap_bytes' class='method'><span id='swap_bytes.v' class='invisible'><code>fn <a href='#tymethod.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; Self</code></span></h3><div class='docblock'><p>Reverses the byte order of the integer.</p>
<h1 id="examples-10" class="section-header"><a href="#examples-10">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">let</span> <span class="ident">m</span> <span class="op">=</span> <span class="number">0xEFCDAB8967452301u64</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">swap_bytes</span>(), <span class="ident">m</span>);</pre>
</div><h3 id='tymethod.from_be' class='method'><span id='from_be.v' class='invisible'><code>fn <a href='#tymethod.from_be' class='fnname'>from_be</a>(x: Self) -&gt; Self</code></span></h3><div class='docblock'><p>Convert an integer from big endian to the target's endianness.</p>
<p>On big endian this is a no-op. On little endian the bytes are swapped.</p>
<h1 id="examples-11" class="section-header"><a href="#examples-11">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">if</span> <span class="macro">cfg</span><span class="macro">!</span>(<span class="ident">target_endian</span> <span class="op">=</span> <span class="string">&quot;big&quot;</span>) {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u64</span>::<span class="ident">from_be</span>(<span class="ident">n</span>), <span class="ident">n</span>)
} <span class="kw">else</span> {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u64</span>::<span class="ident">from_be</span>(<span class="ident">n</span>), <span class="ident">n</span>.<span class="ident">swap_bytes</span>())
}</pre>
</div><h3 id='tymethod.from_le' class='method'><span id='from_le.v' class='invisible'><code>fn <a href='#tymethod.from_le' class='fnname'>from_le</a>(x: Self) -&gt; Self</code></span></h3><div class='docblock'><p>Convert an integer from little endian to the target's endianness.</p>
<p>On little endian this is a no-op. On big endian the bytes are swapped.</p>
<h1 id="examples-12" class="section-header"><a href="#examples-12">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">if</span> <span class="macro">cfg</span><span class="macro">!</span>(<span class="ident">target_endian</span> <span class="op">=</span> <span class="string">&quot;little&quot;</span>) {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u64</span>::<span class="ident">from_le</span>(<span class="ident">n</span>), <span class="ident">n</span>)
} <span class="kw">else</span> {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">u64</span>::<span class="ident">from_le</span>(<span class="ident">n</span>), <span class="ident">n</span>.<span class="ident">swap_bytes</span>())
}</pre>
</div><h3 id='tymethod.to_be' class='method'><span id='to_be.v' class='invisible'><code>fn <a href='#tymethod.to_be' class='fnname'>to_be</a>(self) -&gt; Self</code></span></h3><div class='docblock'><p>Convert <code>self</code> to big endian from the target's endianness.</p>
<p>On big endian this is a no-op. On little endian the bytes are swapped.</p>
<h1 id="examples-13" class="section-header"><a href="#examples-13">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">if</span> <span class="macro">cfg</span><span class="macro">!</span>(<span class="ident">target_endian</span> <span class="op">=</span> <span class="string">&quot;big&quot;</span>) {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">to_be</span>(), <span class="ident">n</span>)
} <span class="kw">else</span> {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">to_be</span>(), <span class="ident">n</span>.<span class="ident">swap_bytes</span>())
}</pre>
</div><h3 id='tymethod.to_le' class='method'><span id='to_le.v' class='invisible'><code>fn <a href='#tymethod.to_le' class='fnname'>to_le</a>(self) -&gt; Self</code></span></h3><div class='docblock'><p>Convert <code>self</code> to little endian from the target's endianness.</p>
<p>On little endian this is a no-op. On big endian the bytes are swapped.</p>
<h1 id="examples-14" class="section-header"><a href="#examples-14">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="kw">let</span> <span class="ident">n</span> <span class="op">=</span> <span class="number">0x0123456789ABCDEFu64</span>;
<span class="kw">if</span> <span class="macro">cfg</span><span class="macro">!</span>(<span class="ident">target_endian</span> <span class="op">=</span> <span class="string">&quot;little&quot;</span>) {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">to_le</span>(), <span class="ident">n</span>)
} <span class="kw">else</span> {
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="ident">n</span>.<span class="ident">to_le</span>(), <span class="ident">n</span>.<span class="ident">swap_bytes</span>())
}</pre>
</div><h3 id='tymethod.pow' class='method'><span id='pow.v' class='invisible'><code>fn <a href='#tymethod.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; Self</code></span></h3><div class='docblock'><p>Raises self to the power of <code>exp</code>, using exponentiation by squaring.</p>
<h1 id="examples-15" class="section-header"><a href="#examples-15">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">num_traits</span>::<span class="ident">PrimInt</span>;
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="number">2i32</span>.<span class="ident">pow</span>(<span class="number">4</span>), <span class="number">16</span>);</pre>
</div></div>
<h2 id='foreign-impls' class='small-section-header'>
Implementations on Foreign Types<a href='#foreign-impls' class='anchor'></a>
</h2>
<h3 id='impl-PrimInt' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a href='#impl-PrimInt' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones' class="method"><span id='count_ones.v-1' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros' class="method"><span id='count_zeros.v-1' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros' class="method"><span id='leading_zeros.v-1' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros' class="method"><span id='trailing_zeros.v-1' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left' class="method"><span id='rotate_left.v-1' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right' class="method"><span id='rotate_right.v-1' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl' class="method"><span id='signed_shl.v-1' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr' class="method"><span id='signed_shr.v-1' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl' class="method"><span id='unsigned_shl.v-1' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr' class="method"><span id='unsigned_shr.v-1' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes' class="method"><span id='swap_bytes.v-1' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be' class="method"><span id='from_be.v-1' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le' class="method"><span id='from_le.v-1' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be' class="method"><span id='to_be.v-1' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le' class="method"><span id='to_le.v-1' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow' class="method"><span id='pow.v-1' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-1' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a href='#impl-PrimInt-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-1' class="method"><span id='count_ones.v-2' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-1' class="method"><span id='count_zeros.v-2' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-1' class="method"><span id='leading_zeros.v-2' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-1' class="method"><span id='trailing_zeros.v-2' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-1' class="method"><span id='rotate_left.v-2' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-1' class="method"><span id='rotate_right.v-2' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-1' class="method"><span id='signed_shl.v-2' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-1' class="method"><span id='signed_shr.v-2' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-1' class="method"><span id='unsigned_shl.v-2' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-1' class="method"><span id='unsigned_shr.v-2' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-1' class="method"><span id='swap_bytes.v-2' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-1' class="method"><span id='from_be.v-2' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-1' class="method"><span id='from_le.v-2' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-1' class="method"><span id='to_be.v-2' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-1' class="method"><span id='to_le.v-2' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-1' class="method"><span id='pow.v-2' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-2' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a href='#impl-PrimInt-2' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-2' class="method"><span id='count_ones.v-3' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-2' class="method"><span id='count_zeros.v-3' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-2' class="method"><span id='leading_zeros.v-3' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-2' class="method"><span id='trailing_zeros.v-3' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-2' class="method"><span id='rotate_left.v-3' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-2' class="method"><span id='rotate_right.v-3' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-2' class="method"><span id='signed_shl.v-3' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-2' class="method"><span id='signed_shr.v-3' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-2' class="method"><span id='unsigned_shl.v-3' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-2' class="method"><span id='unsigned_shr.v-3' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-2' class="method"><span id='swap_bytes.v-3' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-2' class="method"><span id='from_be.v-3' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-2' class="method"><span id='from_le.v-3' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-2' class="method"><span id='to_be.v-3' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-2' class="method"><span id='to_le.v-3' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-2' class="method"><span id='pow.v-3' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-3' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a href='#impl-PrimInt-3' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-3' class="method"><span id='count_ones.v-4' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-3' class="method"><span id='count_zeros.v-4' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-3' class="method"><span id='leading_zeros.v-4' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-3' class="method"><span id='trailing_zeros.v-4' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-3' class="method"><span id='rotate_left.v-4' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-3' class="method"><span id='rotate_right.v-4' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-3' class="method"><span id='signed_shl.v-4' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-3' class="method"><span id='signed_shr.v-4' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-3' class="method"><span id='unsigned_shl.v-4' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-3' class="method"><span id='unsigned_shr.v-4' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-3' class="method"><span id='swap_bytes.v-4' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-3' class="method"><span id='from_be.v-4' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-3' class="method"><span id='from_le.v-4' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-3' class="method"><span id='to_be.v-4' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-3' class="method"><span id='to_le.v-4' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-3' class="method"><span id='pow.v-4' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-4' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code><a href='#impl-PrimInt-4' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-4' class="method"><span id='count_ones.v-5' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-4' class="method"><span id='count_zeros.v-5' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-4' class="method"><span id='leading_zeros.v-5' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-4' class="method"><span id='trailing_zeros.v-5' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-4' class="method"><span id='rotate_left.v-5' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-4' class="method"><span id='rotate_right.v-5' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-4' class="method"><span id='signed_shl.v-5' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-4' class="method"><span id='signed_shr.v-5' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-4' class="method"><span id='unsigned_shl.v-5' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-4' class="method"><span id='unsigned_shr.v-5' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-4' class="method"><span id='swap_bytes.v-5' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-4' class="method"><span id='from_be.v-5' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-4' class="method"><span id='from_le.v-5' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-4' class="method"><span id='to_be.v-5' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-4' class="method"><span id='to_le.v-5' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-4' class="method"><span id='pow.v-5' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-5' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a href='#impl-PrimInt-5' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-5' class="method"><span id='count_ones.v-6' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-5' class="method"><span id='count_zeros.v-6' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-5' class="method"><span id='leading_zeros.v-6' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-5' class="method"><span id='trailing_zeros.v-6' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-5' class="method"><span id='rotate_left.v-6' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-5' class="method"><span id='rotate_right.v-6' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-5' class="method"><span id='signed_shl.v-6' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-5' class="method"><span id='signed_shr.v-6' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-5' class="method"><span id='unsigned_shl.v-6' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-5' class="method"><span id='unsigned_shr.v-6' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-5' class="method"><span id='swap_bytes.v-6' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-5' class="method"><span id='from_be.v-6' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-5' class="method"><span id='from_le.v-6' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-5' class="method"><span id='to_be.v-6' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-5' class="method"><span id='to_le.v-6' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-5' class="method"><span id='pow.v-6' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-6' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a href='#impl-PrimInt-6' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-6' class="method"><span id='count_ones.v-7' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-6' class="method"><span id='count_zeros.v-7' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-6' class="method"><span id='leading_zeros.v-7' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-6' class="method"><span id='trailing_zeros.v-7' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-6' class="method"><span id='rotate_left.v-7' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-6' class="method"><span id='rotate_right.v-7' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-6' class="method"><span id='signed_shl.v-7' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-6' class="method"><span id='signed_shr.v-7' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-6' class="method"><span id='unsigned_shl.v-7' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-6' class="method"><span id='unsigned_shr.v-7' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-6' class="method"><span id='swap_bytes.v-7' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-6' class="method"><span id='from_be.v-7' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-6' class="method"><span id='from_le.v-7' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-6' class="method"><span id='to_be.v-7' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-6' class="method"><span id='to_le.v-7' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-6' class="method"><span id='pow.v-7' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-7' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code><a href='#impl-PrimInt-7' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-7' class="method"><span id='count_ones.v-8' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-7' class="method"><span id='count_zeros.v-8' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-7' class="method"><span id='leading_zeros.v-8' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-7' class="method"><span id='trailing_zeros.v-8' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-7' class="method"><span id='rotate_left.v-8' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-7' class="method"><span id='rotate_right.v-8' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-7' class="method"><span id='signed_shl.v-8' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-7' class="method"><span id='signed_shr.v-8' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-7' class="method"><span id='unsigned_shl.v-8' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-7' class="method"><span id='unsigned_shr.v-8' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-7' class="method"><span id='swap_bytes.v-8' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-7' class="method"><span id='from_be.v-8' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-7' class="method"><span id='from_le.v-8' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-7' class="method"><span id='to_be.v-8' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-7' class="method"><span id='to_le.v-8' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-7' class="method"><span id='pow.v-8' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-8' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code><a href='#impl-PrimInt-8' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-8' class="method"><span id='count_ones.v-9' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-8' class="method"><span id='count_zeros.v-9' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-8' class="method"><span id='leading_zeros.v-9' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-8' class="method"><span id='trailing_zeros.v-9' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-8' class="method"><span id='rotate_left.v-9' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-8' class="method"><span id='rotate_right.v-9' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-8' class="method"><span id='signed_shl.v-9' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-8' class="method"><span id='signed_shr.v-9' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-8' class="method"><span id='unsigned_shl.v-9' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-8' class="method"><span id='unsigned_shr.v-9' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-8' class="method"><span id='swap_bytes.v-9' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-8' class="method"><span id='from_be.v-9' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-8' class="method"><span id='from_le.v-9' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-8' class="method"><span id='to_be.v-9' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-8' class="method"><span id='to_le.v-9' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-8' class="method"><span id='pow.v-9' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-PrimInt-9' class='impl'><span class='in-band'><code>impl <a class="trait" href="../num_traits/int/trait.PrimInt.html" title="trait num_traits::int::PrimInt">PrimInt</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-PrimInt-9' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#282-362' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.count_ones-9' class="method"><span id='count_ones.v-10' class='invisible'><code>fn <a href='#method.count_ones' class='fnname'>count_ones</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#284-286' title='goto source code'>[src]</a></span></h4>
<h4 id='method.count_zeros-9' class="method"><span id='count_zeros.v-10' class='invisible'><code>fn <a href='#method.count_zeros' class='fnname'>count_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#289-291' title='goto source code'>[src]</a></span></h4>
<h4 id='method.leading_zeros-9' class="method"><span id='leading_zeros.v-10' class='invisible'><code>fn <a href='#method.leading_zeros' class='fnname'>leading_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#294-296' title='goto source code'>[src]</a></span></h4>
<h4 id='method.trailing_zeros-9' class="method"><span id='trailing_zeros.v-10' class='invisible'><code>fn <a href='#method.trailing_zeros' class='fnname'>trailing_zeros</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#299-301' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_left-9' class="method"><span id='rotate_left.v-10' class='invisible'><code>fn <a href='#method.rotate_left' class='fnname'>rotate_left</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#304-306' title='goto source code'>[src]</a></span></h4>
<h4 id='method.rotate_right-9' class="method"><span id='rotate_right.v-10' class='invisible'><code>fn <a href='#method.rotate_right' class='fnname'>rotate_right</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#309-311' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shl-9' class="method"><span id='signed_shl.v-10' class='invisible'><code>fn <a href='#method.signed_shl' class='fnname'>signed_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#314-316' title='goto source code'>[src]</a></span></h4>
<h4 id='method.signed_shr-9' class="method"><span id='signed_shr.v-10' class='invisible'><code>fn <a href='#method.signed_shr' class='fnname'>signed_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#319-321' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shl-9' class="method"><span id='unsigned_shl.v-10' class='invisible'><code>fn <a href='#method.unsigned_shl' class='fnname'>unsigned_shl</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#324-326' title='goto source code'>[src]</a></span></h4>
<h4 id='method.unsigned_shr-9' class="method"><span id='unsigned_shr.v-10' class='invisible'><code>fn <a href='#method.unsigned_shr' class='fnname'>unsigned_shr</a>(self, n: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#329-331' title='goto source code'>[src]</a></span></h4>
<h4 id='method.swap_bytes-9' class="method"><span id='swap_bytes.v-10' class='invisible'><code>fn <a href='#method.swap_bytes' class='fnname'>swap_bytes</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#334-336' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_be-9' class="method"><span id='from_be.v-10' class='invisible'><code>fn <a href='#method.from_be' class='fnname'>from_be</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#339-341' title='goto source code'>[src]</a></span></h4>
<h4 id='method.from_le-9' class="method"><span id='from_le.v-10' class='invisible'><code>fn <a href='#method.from_le' class='fnname'>from_le</a>(x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#344-346' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_be-9' class="method"><span id='to_be.v-10' class='invisible'><code>fn <a href='#method.to_be' class='fnname'>to_be</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#349-351' title='goto source code'>[src]</a></span></h4>
<h4 id='method.to_le-9' class="method"><span id='to_le.v-10' class='invisible'><code>fn <a href='#method.to_le' class='fnname'>to_le</a>(self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#354-356' title='goto source code'>[src]</a></span></h4>
<h4 id='method.pow-9' class="method"><span id='pow.v-10' class='invisible'><code>fn <a href='#method.pow' class='fnname'>pow</a>(self, exp: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/num_traits/int.rs.html#359-361' title='goto source code'>[src]</a></span></h4>
</div></span>
<h2 id='implementors' class='small-section-header'>
Implementors<a href='#implementors' class='anchor'></a>
</h2>
<ul class='item-list' id='implementors-list'>
</ul><script type="text/javascript" async
src="../implementors/num_traits/int/trait.PrimInt.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt><kbd>?</kbd></dt>
<dd>Show this help dialog</dd>
<dt><kbd>S</kbd></dt>
<dd>Focus the search field</dd>
<dt><kbd></kbd></dt>
<dd>Move up in search results</dd>
<dt><kbd></kbd></dt>
<dd>Move down in search results</dd>
<dt><kbd></kbd></dt>
<dd>Switch tab</dd>
<dt><kbd>&#9166;</kbd></dt>
<dd>Go to active search result</dd>
<dt><kbd>+</kbd></dt>
<dd>Expand all sections</dd>
<dt><kbd>-</kbd></dt>
<dd>Collapse all sections</dd>
</dl>
</div>
<div class="infos">
<h2>Search Tricks</h2>
<p>
Prefix searches with a type followed by a colon (e.g.
<code>fn:</code>) to restrict the search to a given type.
</p>
<p>
Accepted types are: <code>fn</code>, <code>mod</code>,
<code>struct</code>, <code>enum</code>,
<code>trait</code>, <code>type</code>, <code>macro</code>,
and <code>const</code>.
</p>
<p>
Search functions by type signature (e.g.
<code>vec -> usize</code> or <code>* -> vec</code>)
</p>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "num_traits";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>