Skip to content

Commit

Permalink
normalized HTML diff with pulldown
Browse files Browse the repository at this point in the history
  • Loading branch information
steveklabnik committed Mar 29, 2017
1 parent 608bf50 commit ddda1fe
Show file tree
Hide file tree
Showing 813 changed files with 9,186 additions and 10,441 deletions.
96 changes: 48 additions & 48 deletions alloc/arc/struct.Arc.html
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ <h1 class='fqn'><span class='in-band'>Struct <a href=
<p><a href="struct.Weak.html"><code>Weak&lt;T&gt;</code></a> does
not auto-dereference to <code>T</code>, because the value may have
already been destroyed.</p>
<h1 id='examples' class='section-header'><a href=
'#examples'>Examples</a></h1>
<h1 id="examples" class="section-header"><a href=
"#examples">Examples</a></h1>
<p>Sharing some immutable data between threads:</p>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -216,8 +216,8 @@ <h4 id='method.new' class="method"><span class=
"struct alloc::arc::Arc">Arc</a>&lt;T&gt;</code></span></span></h4>
<div class='docblock'>
<p>Constructs a new <code>Arc&lt;T&gt;</code>.</p>
<h1 id='examples-1' class='section-header'><a href=
'#examples-1'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -247,8 +247,8 @@ <h4 id='method.try_unwrap' class="method">1.4.0</h4>
in.</span></p>
<p><span id='try_unwrap.v' class='invisible'>This will succeed even
if there are outstanding weak references.</span></p>
<h1 id='examples-2' class='section-header'><span id='try_unwrap.v'
class='invisible'><a href='#examples-2'>Examples</a></span></h1>
<h1 id="examples-2" class="section-header"><span id='try_unwrap.v'
class='invisible'><a href="#examples-2">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='try_unwrap.v'
class='invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -291,8 +291,8 @@ <h4 id='method.into_raw' class="method">1.17.0</h4>
the pointer must be converted back to an <code>Arc</code> using
<a href=
"struct.Arc.html#method.from_raw"><code>Arc::from_raw</code></a>.</span></p>
<h1 id='examples-3' class='section-header'><span id='into_raw.v'
class='invisible'><a href='#examples-3'>Examples</a></span></h1>
<h1 id="examples-3" class="section-header"><span id='into_raw.v'
class='invisible'><a href="#examples-3">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='into_raw.v'
class='invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -328,8 +328,8 @@ <h4 id='method.from_raw' class="method">1.17.0</h4>
because improper use may lead to memory problems. For example, a
double-free may occur if the function is called twice on the same
raw pointer.</span></p>
<h1 id='examples-4' class='section-header'><span id='from_raw.v'
class='invisible'><a href='#examples-4'>Examples</a></span></h1>
<h1 id="examples-4" class="section-header"><span id='from_raw.v'
class='invisible'><a href="#examples-4">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='from_raw.v'
class='invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -388,8 +388,8 @@ <h4 id='method.downgrade' class="method">1.4.0</h4>
<p><span class='out-of-band'>Creates a new <a href=
"struct.Weak.html"><code>Weak</code></a> pointer to this
value.</span></p>
<h1 id='examples-5' class='section-header'><span class=
'out-of-band'><a href='#examples-5'>Examples</a></span></h1>
<h1 id="examples-5" class="section-header"><span class=
'out-of-band'><a href="#examples-5">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span class='out-of-band'>
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -417,14 +417,14 @@ <h4 id='method.weak_count' class="method">1.15.0</h4>
<p><span id='weak_count.v' class='invisible'>Gets the number of
<a href="struct.Weak.html"><code>Weak</code></a> pointers to this
value.</span></p>
<h1 id='safety' class='section-header'><span id='weak_count.v'
class='invisible'><a href='#safety'>Safety</a></span></h1>
<h1 id="safety" class="section-header"><span id='weak_count.v'
class='invisible'><a href="#safety">Safety</a></span></h1>
<p><span id='weak_count.v' class='invisible'>This method by itself
is safe, but using it correctly requires extra care. Another thread
can change the weak count at any time, including potentially
between calling this method and acting on the result.</span></p>
<h1 id='examples-6' class='section-header'><span id='weak_count.v'
class='invisible'><a href='#examples-6'>Examples</a></span></h1>
<h1 id="examples-6" class="section-header"><span id='weak_count.v'
class='invisible'><a href="#examples-6">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='weak_count.v'
class='invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -461,16 +461,16 @@ <h4 id='method.strong_count' class="method">1.15.0</h4>
'invisible'></span>
<p><span id='strong_count.v' class='invisible'>Gets the number of
strong (<code>Arc</code>) pointers to this value.</span></p>
<h1 id='safety-1' class='section-header'><span id='strong_count.v'
class='invisible'><a href='#safety-1'>Safety</a></span></h1>
<h1 id="safety-1" class="section-header"><span id='strong_count.v'
class='invisible'><a href="#safety-1">Safety</a></span></h1>
<p><span id='strong_count.v' class='invisible'>This method by
itself is safe, but using it correctly requires extra care. Another
thread can change the strong count at any time, including
potentially between calling this method and acting on the
result.</span></p>
<h1 id='examples-7' class='section-header'><span id=
<h1 id="examples-7" class="section-header"><span id=
'strong_count.v' class='invisible'><a href=
'#examples-7'>Examples</a></span></h1>
"#examples-7">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='strong_count.v'
class='invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -504,8 +504,8 @@ <h4 id='method.ptr_eq' class="method">1.17.0</h4>
<p><span id='ptr_eq.v' class='invisible'>Returns true if the two
<code>Arc</code>s point to the same value (not just values that
compare as equal).</span></p>
<h1 id='examples-8' class='section-header'><span id='ptr_eq.v'
class='invisible'><a href='#examples-8'>Examples</a></span></h1>
<h1 id="examples-8" class="section-header"><span id='ptr_eq.v'
class='invisible'><a href="#examples-8">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span id='ptr_eq.v' class=
'invisible'>
<span class="kw">use</span> <span class=
Expand Down Expand Up @@ -567,8 +567,8 @@ <h4 id='method.make_mut' class="method">1.4.0</h4>
<p><span class='out-of-band'>See also <a href=
"struct.Arc.html#method.get_mut"><code>get_mut</code></a>, which
will fail rather than cloning.</span></p>
<h1 id='examples-9' class='section-header'><span class=
'out-of-band'><a href='#examples-9'>Examples</a></span></h1>
<h1 id="examples-9" class="section-header"><span class=
'out-of-band'><a href="#examples-9">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span class='out-of-band'>
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -657,8 +657,8 @@ <h4 id='method.get_mut' class="method">1.4.0</h4>
will <a href=
"../../std/clone/trait.Clone.html#tymethod.clone"><code>clone</code></a>
the inner value when it's shared.</span></p>
<h1 id='examples-10' class='section-header'><span class=
'out-of-band'><a href='#examples-10'>Examples</a></span></h1>
<h1 id="examples-10" class="section-header"><span class=
'out-of-band'><a href="#examples-10">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span class='out-of-band'>
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -767,8 +767,8 @@ <h4 id='method.clone' class="method"><span class=
<p>Makes a clone of the <code>Arc</code> pointer.</p>
<p>This creates another pointer to the same inner value, increasing
the strong reference count.</p>
<h1 id='examples-11' class='section-header'><a href=
'#examples-11'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -845,8 +845,8 @@ <h4 id='method.drop' class="method"><span class=
reference count reaches zero then the only other references (if
any) are <a href="struct.Weak.html"><code>Weak</code></a>, so we
<code>drop</code> the inner value.</p>
<h1 id='examples-12' class='section-header'><a href=
'#examples-12'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -907,8 +907,8 @@ <h4 id='method.eq' class="method"><span class=
<p>Equality for two <code>Arc</code>s.</p>
<p>Two <code>Arc</code>s are equal if their inner values are
equal.</p>
<h1 id='examples-13' class='section-header'><a href=
'#examples-13'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand All @@ -934,8 +934,8 @@ <h4 id='method.ne' class="method"><span id='ne.v' class=
<p>Inequality for two <code>Arc</code>s.</p>
<p>Two <code>Arc</code>s are unequal if their inner values are
unequal.</p>
<h1 id='examples-14' class='section-header'><a href=
'#examples-14'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -981,8 +981,8 @@ <h4 id='method.partial_cmp' class="method"><span class=
<p>Partial comparison for two <code>Arc</code>s.</p>
<p>The two are compared by calling <code>partial_cmp()</code> on
their inner values.</p>
<h1 id='examples-15' class='section-header'><a href=
'#examples-15'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -1014,8 +1014,8 @@ <h4 id='method.lt' class="method"><span id='lt.v' class=
<p>Less-than comparison for two <code>Arc</code>s.</p>
<p>The two are compared by calling <code>&lt;</code> on their inner
values.</p>
<h1 id='examples-16' class='section-header'><a href=
'#examples-16'>Examples</a></h1>
<h1 id="examples-16" class="section-header"><a href=
"#examples-16">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand All @@ -1042,8 +1042,8 @@ <h4 id='method.le' class="method"><span id='le.v' class=
<code>Arc</code>s.</p>
<p>The two are compared by calling <code>&lt;=</code> on their
inner values.</p>
<h1 id='examples-17' class='section-header'><a href=
'#examples-17'>Examples</a></h1>
<h1 id="examples-17" class="section-header"><a href=
"#examples-17">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand All @@ -1069,8 +1069,8 @@ <h4 id='method.gt' class="method"><span id='gt.v' class=
<p>Greater-than comparison for two <code>Arc</code>s.</p>
<p>The two are compared by calling <code>&gt;</code> on their inner
values.</p>
<h1 id='examples-18' class='section-header'><a href=
'#examples-18'>Examples</a></h1>
<h1 id="examples-18" class="section-header"><a href=
"#examples-18">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand All @@ -1097,8 +1097,8 @@ <h4 id='method.ge' class="method"><span id='ge.v' class=
<code>Arc</code>s.</p>
<p>The two are compared by calling <code>&gt;=</code> on their
inner values.</p>
<h1 id='examples-19' class='section-header'><a href=
'#examples-19'>Examples</a></h1>
<h1 id="examples-19" class="section-header"><a href=
"#examples-19">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -1142,8 +1142,8 @@ <h4 id='method.cmp' class="method"><span class=
<p>Comparison for two <code>Arc</code>s.</p>
<p>The two are compared by calling <code>cmp()</code> on their
inner values.</p>
<h1 id='examples-20' class='section-header'><a href=
'#examples-20'>Examples</a></h1>
<h1 id="examples-20" class="section-header"><a href=
"#examples-20">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -1285,8 +1285,8 @@ <h4 id='method.default' class="method"><span class=
<div class='docblock'>
<p>Creates a new <code>Arc&lt;T&gt;</code>, with the
<code>Default</code> value for <code>T</code>.</p>
<h1 id='examples-21' class='section-header'><a href=
'#examples-21'>Examples</a></h1>
<h1 id="examples-21" class="section-header"><a href=
"#examples-21">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down
20 changes: 10 additions & 10 deletions alloc/arc/struct.Weak.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,8 @@ <h4 id='method.new' class="method">1.10.0</h4>
"struct.Weak.html#method.upgrade"><code>upgrade</code></a> on the
return value always gives <a href=
"../../std/option/enum.Option.html"><code>None</code></a>.</span></p>
<h1 id='examples' class='section-header'><span class=
'out-of-band'><a href='#examples'>Examples</a></span></h1>
<h1 id="examples" class="section-header"><span class=
'out-of-band'><a href="#examples">Examples</a></span></h1>
<pre class="rust rust-example-rendered"><span class='out-of-band'>
<span class="kw">use</span> <span class=
"ident">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -135,8 +135,8 @@ <h4 id='method.upgrade' class="method"><span class=
"../../std/option/enum.Option.html"><code>None</code></a> if the
strong count has reached zero and the inner value was
destroyed.</p>
<h1 id='examples-1' class='section-header'><a href=
'#examples-1'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -282,8 +282,8 @@ <h4 id='method.clone' class="method"><span class=
<p>Makes a clone of the <code>Weak</code> pointer.</p>
<p>This creates another pointer to the same inner value, increasing
the weak reference count.</p>
<h1 id='examples-2' class='section-header'><a href=
'#examples-2'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -342,8 +342,8 @@ <h4 id='method.default' class="method"><span class=
"struct.Weak.html#method.upgrade"><code>upgrade</code></a> on the
return value always gives <a href=
"../../std/option/enum.Option.html"><code>None</code></a>.</p>
<h1 id='examples-3' class='section-header'><a href=
'#examples-3'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down Expand Up @@ -380,8 +380,8 @@ <h4 id='method.drop' class="method"><span class=
<div class='docblock'>
<p>Drops the <code>Weak</code> pointer.</p>
<p>This will decrement the weak reference count.</p>
<h1 id='examples-4' class='section-header'><a href=
'#examples-4'>Examples</a></h1>
<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">std</span>::<span class="ident">sync</span>::<span class=
Expand Down
4 changes: 2 additions & 2 deletions alloc/boxed/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ <h1 class='fqn'><span class='in-band'>Module <a href=
provides the simplest form of heap allocation in Rust. Boxes
provide ownership for this allocation, and drop their contents when
they go out of scope.</p>
<h1 id='examples' class='section-header'><a href=
'#examples'>Examples</a></h1>
<h1 id="examples" class="section-header"><a href=
"#examples">Examples</a></h1>
<p>Creating a box:</p>
<pre class="rust rust-example-rendered">
<span class="kw">let</span> <span class=
Expand Down
Loading

0 comments on commit ddda1fe

Please sign in to comment.