Sophie

Sophie

distrib > Mageia > 7 > armv7hl > media > core-release > by-pkgid > 0c2243f8a1696816431e7210e991fa52 > files > 16105

rust-doc-1.35.0-1.mga7.armv7hl.rpm

<!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 `Neg` trait in crate `std`."><meta name="keywords" content="rust, rustlang, rust-lang, Neg"><title>std::ops::Neg - Rust</title><link rel="stylesheet" type="text/css" href="../../normalize1.35.0.css"><link rel="stylesheet" type="text/css" href="../../rustdoc1.35.0.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../../dark1.35.0.css"><link rel="stylesheet" type="text/css" href="../../light1.35.0.css" id="themeStyle"><script src="../../storage1.35.0.js"></script><noscript><link rel="stylesheet" href="../../noscript1.35.0.css"></noscript><link rel="shortcut icon" href="../../favicon1.35.0.ico"><style type="text/css">#crate-search{background-image:url("../../down-arrow1.35.0.svg");}</style></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><a href='../../std/index.html'><img src='../../rust-logo1.35.0.png' alt='logo' width='100'></a><p class='location'>Trait Neg</p><div class="sidebar-elems"><div class="block items"><a class="sidebar-title" href="#associated-types">Associated Types</a><div class="sidebar-links"><a href="#associatedtype.Output">Output</a></div><a class="sidebar-title" href="#required-methods">Required Methods</a><div class="sidebar-links"><a href="#tymethod.neg">neg</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='../index.html'>std</a>::<wbr><a href='index.html'>ops</a></p><script>window.sidebarCurrent = {name: 'Neg', 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="../../brush1.35.0.svg" width="18" alt="Pick another theme!"></button><div id="theme-choices"></div></div><script src="../../theme1.35.0.js"></script><nav class="sub"><form class="search-form js-only"><div class="search-container"><div><select id="crate-search"><option value="All crates">All crates</option></select><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"></div><a id="settings-menu" href="../../settings.html"><img src="../../wheel1.35.0.svg" width="18" alt="Change settings"></a></div></form></nav><section id="main" class="content"><h1 class='fqn'><span class='out-of-band'><span class='since' title='Stable since Rust version 1.0.0'>1.0.0</span><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/core/ops/arith.rs.html#608-617' title='goto source code'>[src]</a></span><span class='in-band'>Trait <a href='../index.html'>std</a>::<wbr><a href='index.html'>ops</a>::<wbr><a class="trait" href=''>Neg</a></span></h1><div class="docblock type-decl hidden-by-usual-hider"><pre class='rust trait'><div class="docblock attributes">#[lang = "neg"]
</div>pub trait Neg {
    type <a href='#associatedtype.Output' class="type">Output</a>;
    <div class="docblock attributes">#[must_use]
</div>fn <a href='#tymethod.neg' class='fnname'>neg</a>(self) -&gt; Self::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a>;
}</pre></div><div class='docblock'><p>The unary negation operator <code>-</code>.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<p>An implementation of <code>Neg</code> for <code>Sign</code>, which allows the use of <code>-</code> to
negate its value.</p>

<div class="example-wrap"><pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class="ident">std</span>::<span class="ident">ops</span>::<span class="ident">Neg</span>;

<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">Debug</span>, <span class="ident">PartialEq</span>)]</span>
<span class="kw">enum</span> <span class="ident">Sign</span> {
    <span class="ident">Negative</span>,
    <span class="ident">Zero</span>,
    <span class="ident">Positive</span>,
}

<span class="kw">impl</span> <span class="ident">Neg</span> <span class="kw">for</span> <span class="ident">Sign</span> {
    <span class="kw">type</span> <span class="ident">Output</span> <span class="op">=</span> <span class="ident">Sign</span>;

    <span class="kw">fn</span> <span class="ident">neg</span>(<span class="self">self</span>) <span class="op">-&gt;</span> <span class="self">Self</span>::<span class="ident">Output</span> {
        <span class="kw">match</span> <span class="self">self</span> {
            <span class="ident">Sign</span>::<span class="ident">Negative</span> <span class="op">=&gt;</span> <span class="ident">Sign</span>::<span class="ident">Positive</span>,
            <span class="ident">Sign</span>::<span class="ident">Zero</span> <span class="op">=&gt;</span> <span class="ident">Sign</span>::<span class="ident">Zero</span>,
            <span class="ident">Sign</span>::<span class="ident">Positive</span> <span class="op">=&gt;</span> <span class="ident">Sign</span>::<span class="ident">Negative</span>,
        }
    }
}

<span class="comment">// A negative positive is a negative.</span>
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="op">-</span><span class="ident">Sign</span>::<span class="ident">Positive</span>, <span class="ident">Sign</span>::<span class="ident">Negative</span>);
<span class="comment">// A double negative is a positive.</span>
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="op">-</span><span class="ident">Sign</span>::<span class="ident">Negative</span>, <span class="ident">Sign</span>::<span class="ident">Positive</span>);
<span class="comment">// Zero is its own negation.</span>
<span class="macro">assert_eq</span><span class="macro">!</span>(<span class="op">-</span><span class="ident">Sign</span>::<span class="ident">Zero</span>, <span class="ident">Sign</span>::<span class="ident">Zero</span>);<a class="test-arrow" target="_blank" href="https://play.rust-lang.org/?code=%23!%5Ballow(unused)%5D%0Afn%20main()%20%7B%0Ause%20std%3A%3Aops%3A%3ANeg%3B%0A%0A%23%5Bderive(Debug%2C%20PartialEq)%5D%0Aenum%20Sign%20%7B%0A%20%20%20%20Negative%2C%0A%20%20%20%20Zero%2C%0A%20%20%20%20Positive%2C%0A%7D%0A%0Aimpl%20Neg%20for%20Sign%20%7B%0A%20%20%20%20type%20Output%20%3D%20Sign%3B%0A%0A%20%20%20%20fn%20neg(self)%20-%3E%20Self%3A%3AOutput%20%7B%0A%20%20%20%20%20%20%20%20match%20self%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20Sign%3A%3ANegative%20%3D%3E%20Sign%3A%3APositive%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20Sign%3A%3AZero%20%3D%3E%20Sign%3A%3AZero%2C%0A%20%20%20%20%20%20%20%20%20%20%20%20Sign%3A%3APositive%20%3D%3E%20Sign%3A%3ANegative%2C%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%7D%0A%0A%2F%2F%20A%20negative%20positive%20is%20a%20negative.%0Aassert_eq!(-Sign%3A%3APositive%2C%20Sign%3A%3ANegative)%3B%0A%2F%2F%20A%20double%20negative%20is%20a%20positive.%0Aassert_eq!(-Sign%3A%3ANegative%2C%20Sign%3A%3APositive)%3B%0A%2F%2F%20Zero%20is%20its%20own%20negation.%0Aassert_eq!(-Sign%3A%3AZero%2C%20Sign%3A%3AZero)%3B%0A%7D">Run</a></pre></div>
</div>
            <h2 id='associated-types' class='small-section-header'>Associated Types<a href='#associated-types' class='anchor'></a></h2><div class='methods'><h3 id='associatedtype.Output' class='method'><code id='Output.t'>type <a href='#associatedtype.Output' class="type">Output</a></code></h3><div class='docblock'><p>The resulting type after applying the <code>-</code> operator.</p>
</div></div><span class='loading-content'>Loading content...</span>
            <h2 id='required-methods' class='small-section-header'>Required methods<a href='#required-methods' class='anchor'></a></h2><div class='methods'><h3 id='tymethod.neg' class='method'><code id='neg.v'><div class="docblock attributes">#[must_use]
</div>fn <a href='#tymethod.neg' class='fnname'>neg</a>(self) -&gt; Self::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h3><div class='docblock'><p>Performs the unary <code>-</code> operation.</p>
</div></div><span class='loading-content'>Loading content...</span>
            <h2 id='implementors' class='small-section-header'>Implementors<a href='#implementors' class='anchor'></a></h2><div class='item-list' id='implementors-list'><h3 id='impl-Neg' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.f32.html">f32</a></code><a href='#impl-Neg' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-1' class="type"><code id='Output.t-1'>type <a href='#associatedtype.Output-1' class="type">Output</a> = <a class="primitive" href="../primitive.f32.html">f32</a></code></h4><h4 id='method.neg' class="method hidden"><code id='neg.v-1'>fn <a href='#method.neg' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.f32.html">f32</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-1' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.f64.html">f64</a></code><a href='#impl-Neg-1' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-2' class="type"><code id='Output.t-2'>type <a href='#associatedtype.Output-2' class="type">Output</a> = <a class="primitive" href="../primitive.f64.html">f64</a></code></h4><h4 id='method.neg-1' class="method hidden"><code id='neg.v-2'>fn <a href='#method.neg-1' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.f64.html">f64</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-2' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.i128.html">i128</a></code><a href='#impl-Neg-2' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-3' class="type"><code id='Output.t-3'>type <a href='#associatedtype.Output-3' class="type">Output</a> = <a class="primitive" href="../primitive.i128.html">i128</a></code></h4><h4 id='method.neg-2' class="method hidden"><code id='neg.v-3'>fn <a href='#method.neg-2' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.i128.html">i128</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-3' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.i16.html">i16</a></code><a href='#impl-Neg-3' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-4' class="type"><code id='Output.t-4'>type <a href='#associatedtype.Output-4' class="type">Output</a> = <a class="primitive" href="../primitive.i16.html">i16</a></code></h4><h4 id='method.neg-3' class="method hidden"><code id='neg.v-4'>fn <a href='#method.neg-3' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.i16.html">i16</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-4' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.i32.html">i32</a></code><a href='#impl-Neg-4' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-5' class="type"><code id='Output.t-5'>type <a href='#associatedtype.Output-5' class="type">Output</a> = <a class="primitive" href="../primitive.i32.html">i32</a></code></h4><h4 id='method.neg-4' class="method hidden"><code id='neg.v-5'>fn <a href='#method.neg-4' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.i32.html">i32</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-5' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.i64.html">i64</a></code><a href='#impl-Neg-5' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-6' class="type"><code id='Output.t-6'>type <a href='#associatedtype.Output-6' class="type">Output</a> = <a class="primitive" href="../primitive.i64.html">i64</a></code></h4><h4 id='method.neg-5' class="method hidden"><code id='neg.v-6'>fn <a href='#method.neg-5' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.i64.html">i64</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-6' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.i8.html">i8</a></code><a href='#impl-Neg-6' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-7' class="type"><code id='Output.t-7'>type <a href='#associatedtype.Output-7' class="type">Output</a> = <a class="primitive" href="../primitive.i8.html">i8</a></code></h4><h4 id='method.neg-6' class="method hidden"><code id='neg.v-7'>fn <a href='#method.neg-6' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.i8.html">i8</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-7' class='impl'><code class='in-band'>impl Neg for <a class="primitive" href="../primitive.isize.html">isize</a></code><a href='#impl-Neg-7' class='anchor'></a><a class='srclink' href='../../src/core/ops/arith.rs.html#624-630' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-8' class="type"><code id='Output.t-8'>type <a href='#associatedtype.Output-8' class="type">Output</a> = <a class="primitive" href="../primitive.isize.html">isize</a></code></h4><h4 id='method.neg-7' class="method hidden"><code id='neg.v-8'>fn <a href='#method.neg-7' class='fnname'>neg</a>(self) -&gt; <a class="primitive" href="../primitive.isize.html">isize</a></code><a class='srclink' href='../../src/core/ops/arith.rs.html#629' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-8' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt;</code><a href='#impl-Neg-8' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-9' class="type"><code id='Output.t-9'>type <a href='#associatedtype.Output-9' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt;</code></h4><h4 id='method.neg-8' class="method hidden"><code id='neg.v-9'>fn <a href='#method.neg-8' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-9' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt;</code><a href='#impl-Neg-9' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-10' class="type"><code id='Output.t-10'>type <a href='#associatedtype.Output-10' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt;</code></h4><h4 id='method.neg-9' class="method hidden"><code id='neg.v-10'>fn <a href='#method.neg-9' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-10' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt;</code><a href='#impl-Neg-10' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-11' class="type"><code id='Output.t-11'>type <a href='#associatedtype.Output-11' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt;</code></h4><h4 id='method.neg-10' class="method hidden"><code id='neg.v-11'>fn <a href='#method.neg-10' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-11' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt;</code><a href='#impl-Neg-11' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-12' class="type"><code id='Output.t-12'>type <a href='#associatedtype.Output-12' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt;</code></h4><h4 id='method.neg-11' class="method hidden"><code id='neg.v-12'>fn <a href='#method.neg-11' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-12' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt;</code><a href='#impl-Neg-12' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-13' class="type"><code id='Output.t-13'>type <a href='#associatedtype.Output-13' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt;</code></h4><h4 id='method.neg-12' class="method hidden"><code id='neg.v-13'>fn <a href='#method.neg-12' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-13' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt;</code><a href='#impl-Neg-13' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-14' class="type"><code id='Output.t-14'>type <a href='#associatedtype.Output-14' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt;</code></h4><h4 id='method.neg-13' class="method hidden"><code id='neg.v-14'>fn <a href='#method.neg-13' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-14' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt;</code><a href='#impl-Neg-14' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-15' class="type"><code id='Output.t-15'>type <a href='#associatedtype.Output-15' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt;</code></h4><h4 id='method.neg-14' class="method hidden"><code id='neg.v-15'>fn <a href='#method.neg-14' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-15' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt;</code><a href='#impl-Neg-15' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-16' class="type"><code id='Output.t-16'>type <a href='#associatedtype.Output-16' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt;</code></h4><h4 id='method.neg-15' class="method hidden"><code id='neg.v-16'>fn <a href='#method.neg-15' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-16' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt;</code><a href='#impl-Neg-16' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-17' class="type"><code id='Output.t-17'>type <a href='#associatedtype.Output-17' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt;</code></h4><h4 id='method.neg-16' class="method hidden"><code id='neg.v-17'>fn <a href='#method.neg-16' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-17' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt;</code><a href='#impl-Neg-17' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-18' class="type"><code id='Output.t-18'>type <a href='#associatedtype.Output-18' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt;</code></h4><h4 id='method.neg-17' class="method hidden"><code id='neg.v-18'>fn <a href='#method.neg-17' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-18' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt;</code><a href='#impl-Neg-18' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-19' class="type"><code id='Output.t-19'>type <a href='#associatedtype.Output-19' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt;</code></h4><h4 id='method.neg-18' class="method hidden"><code id='neg.v-19'>fn <a href='#method.neg-18' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-19' class='impl'><code class='in-band'>impl Neg for <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt;</code><a href='#impl-Neg-19' class='anchor'></a><a class='srclink' href='../../src/core/num/wrapping.rs.html#303-309' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-20' class="type"><code id='Output.t-20'>type <a href='#associatedtype.Output-20' class="type">Output</a> = <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt;</code></h4><h4 id='method.neg-19' class="method hidden"><code id='neg.v-20'>fn <a href='#method.neg-19' class='fnname'>neg</a>(self) -&gt; <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt;</code><a class='srclink' href='../../src/core/num/wrapping.rs.html#306-308' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-20' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.f32.html">f32</a></code><a href='#impl-Neg-20' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-21' class="type"><code id='Output.t-21'>type <a href='#associatedtype.Output-21' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.f32.html">f32</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-20' class="method hidden"><code id='neg.v-21'>fn <a href='#method.neg-20' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.f32.html">f32</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-21' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.f64.html">f64</a></code><a href='#impl-Neg-21' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-22' class="type"><code id='Output.t-22'>type <a href='#associatedtype.Output-22' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.f64.html">f64</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-21' class="method hidden"><code id='neg.v-22'>fn <a href='#method.neg-21' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.f64.html">f64</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-22' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.i128.html">i128</a></code><a href='#impl-Neg-22' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-23' class="type"><code id='Output.t-23'>type <a href='#associatedtype.Output-23' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.i128.html">i128</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-22' class="method hidden"><code id='neg.v-23'>fn <a href='#method.neg-22' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.i128.html">i128</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-23' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.i16.html">i16</a></code><a href='#impl-Neg-23' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-24' class="type"><code id='Output.t-24'>type <a href='#associatedtype.Output-24' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.i16.html">i16</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-23' class="method hidden"><code id='neg.v-24'>fn <a href='#method.neg-23' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.i16.html">i16</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-24' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.i32.html">i32</a></code><a href='#impl-Neg-24' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-25' class="type"><code id='Output.t-25'>type <a href='#associatedtype.Output-25' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.i32.html">i32</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-24' class="method hidden"><code id='neg.v-25'>fn <a href='#method.neg-24' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.i32.html">i32</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-25' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.i64.html">i64</a></code><a href='#impl-Neg-25' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-26' class="type"><code id='Output.t-26'>type <a href='#associatedtype.Output-26' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.i64.html">i64</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-25' class="method hidden"><code id='neg.v-26'>fn <a href='#method.neg-25' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.i64.html">i64</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-26' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.i8.html">i8</a></code><a href='#impl-Neg-26' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-27' class="type"><code id='Output.t-27'>type <a href='#associatedtype.Output-27' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.i8.html">i8</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-26' class="method hidden"><code id='neg.v-27'>fn <a href='#method.neg-26' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.i8.html">i8</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-27' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="primitive" href="../primitive.isize.html">isize</a></code><a href='#impl-Neg-27' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-28' class="type"><code id='Output.t-28'>type <a href='#associatedtype.Output-28' class="type">Output</a> = &lt;<a class="primitive" href="../primitive.isize.html">isize</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-27' class="method hidden"><code id='neg.v-28'>fn <a href='#method.neg-27' class='fnname'>neg</a>(self) -&gt; &lt;<a class="primitive" href="../primitive.isize.html">isize</a> as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-28' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt;</code><a href='#impl-Neg-28' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-29' class="type"><code id='Output.t-29'>type <a href='#associatedtype.Output-29' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-28' class="method hidden"><code id='neg.v-29'>fn <a href='#method.neg-28' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i128.html">i128</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-29' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt;</code><a href='#impl-Neg-29' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-30' class="type"><code id='Output.t-30'>type <a href='#associatedtype.Output-30' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-29' class="method hidden"><code id='neg.v-30'>fn <a href='#method.neg-29' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i16.html">i16</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-30' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt;</code><a href='#impl-Neg-30' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-31' class="type"><code id='Output.t-31'>type <a href='#associatedtype.Output-31' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-30' class="method hidden"><code id='neg.v-31'>fn <a href='#method.neg-30' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i32.html">i32</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-31' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt;</code><a href='#impl-Neg-31' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-32' class="type"><code id='Output.t-32'>type <a href='#associatedtype.Output-32' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-31' class="method hidden"><code id='neg.v-32'>fn <a href='#method.neg-31' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i64.html">i64</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-32' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt;</code><a href='#impl-Neg-32' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-33' class="type"><code id='Output.t-33'>type <a href='#associatedtype.Output-33' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-32' class="method hidden"><code id='neg.v-33'>fn <a href='#method.neg-32' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.i8.html">i8</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-33' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt;</code><a href='#impl-Neg-33' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-34' class="type"><code id='Output.t-34'>type <a href='#associatedtype.Output-34' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-33' class="method hidden"><code id='neg.v-34'>fn <a href='#method.neg-33' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.isize.html">isize</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-34' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt;</code><a href='#impl-Neg-34' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-35' class="type"><code id='Output.t-35'>type <a href='#associatedtype.Output-35' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-34' class="method hidden"><code id='neg.v-35'>fn <a href='#method.neg-34' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u128.html">u128</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-35' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt;</code><a href='#impl-Neg-35' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-36' class="type"><code id='Output.t-36'>type <a href='#associatedtype.Output-36' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-35' class="method hidden"><code id='neg.v-36'>fn <a href='#method.neg-35' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u16.html">u16</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-36' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt;</code><a href='#impl-Neg-36' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-37' class="type"><code id='Output.t-37'>type <a href='#associatedtype.Output-37' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-36' class="method hidden"><code id='neg.v-37'>fn <a href='#method.neg-36' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u32.html">u32</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-37' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt;</code><a href='#impl-Neg-37' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-38' class="type"><code id='Output.t-38'>type <a href='#associatedtype.Output-38' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-37' class="method hidden"><code id='neg.v-38'>fn <a href='#method.neg-37' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u64.html">u64</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-38' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt;</code><a href='#impl-Neg-38' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-39' class="type"><code id='Output.t-39'>type <a href='#associatedtype.Output-39' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-38' class="method hidden"><code id='neg.v-39'>fn <a href='#method.neg-38' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.u8.html">u8</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div><h3 id='impl-Neg-39' class='impl'><code class='in-band'>impl&lt;'_&gt; Neg for &amp;'_ <a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt;</code><a href='#impl-Neg-39' class='anchor'></a><a class='srclink' href='../../src/core/internal_macros.rs.html#10-17' title='goto source code'>[src]</a></h3><div class='impl-items'><h4 id='associatedtype.Output-40' class="type"><code id='Output.t-40'>type <a href='#associatedtype.Output-40' class="type">Output</a> = &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code></h4><h4 id='method.neg-39' class="method hidden"><code id='neg.v-40'>fn <a href='#method.neg-39' class='fnname'>neg</a>(self) -&gt; &lt;<a class="struct" href="../../std/num/struct.Wrapping.html" title="struct std::num::Wrapping">Wrapping</a>&lt;<a class="primitive" href="../primitive.usize.html">usize</a>&gt; as <a class="trait" href="../../std/ops/trait.Neg.html" title="trait std::ops::Neg">Neg</a>&gt;::<a class="type" href="../../std/ops/trait.Neg.html#associatedtype.Output" title="type std::ops::Neg::Output">Output</a></code><a class='srclink' href='../../src/core/internal_macros.rs.html#14-16' title='goto source code'>[src]</a></h4></div></div><span class='loading-content'>Loading content...</span><script type="text/javascript">window.inlined_types=new Set([]);</script><script type="text/javascript" async
                         src="../../implementors/core/ops/arith/trait.Neg.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><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath = "../../";window.currentCrate = "std";</script><script src="../../aliases.js"></script><script src="../../main1.35.0.js"></script><script defer src="../../search-index.js"></script></body></html>