mentat/rustc_serialize/trait.Encodable.html
2018-08-22 17:04:13 +00:00

352 lines
No EOL
163 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 `Encodable` trait in crate `rustc_serialize`.">
<meta name="keywords" content="rust, rustlang, rust-lang, Encodable">
<title>rustc_serialize::Encodable - 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>
<link rel="shortcut icon" href="https://www.rust-lang.org/favicon.ico">
</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='../rustc_serialize/index.html'><img src='https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png' alt='logo' width='100'></a>
<p class='location'>Trait Encodable</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.encode">encode</a></div><a class="sidebar-title" href="#foreign-impls">Implementations on Foreign Types</a><div class="sidebar-links"><a href="#impl-Encodable">usize</a><a href="#impl-Encodable">u8</a><a href="#impl-Encodable">u16</a><a href="#impl-Encodable">u32</a><a href="#impl-Encodable">u64</a><a href="#impl-Encodable">isize</a><a href="#impl-Encodable">i8</a><a href="#impl-Encodable">i16</a><a href="#impl-Encodable">i32</a><a href="#impl-Encodable">i64</a><a href="#impl-Encodable">str</a><a href="#impl-Encodable">String</a><a href="#impl-Encodable">f32</a><a href="#impl-Encodable">f64</a><a href="#impl-Encodable">bool</a><a href="#impl-Encodable">char</a><a href="#impl-Encodable">()</a><a href="#impl-Encodable">&amp;&#39;a T</a><a href="#impl-Encodable">Box&lt;T&gt;</a><a href="#impl-Encodable">Rc&lt;T&gt;</a><a href="#impl-Encodable">Cow&lt;&#39;a, T&gt;</a><a href="#impl-Encodable">[T]</a><a href="#impl-Encodable">Vec&lt;T&gt;</a><a href="#impl-Encodable">Option&lt;T&gt;</a><a href="#impl-Encodable">Result&lt;T, E&gt;</a><a href="#impl-Encodable">PhantomData&lt;T&gt;</a><a href="#impl-Encodable">(T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T3, T4, T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T4, T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T5, T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T6, T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T7, T8, T9, T10, T11)</a><a href="#impl-Encodable">(T8, T9, T10, T11)</a><a href="#impl-Encodable">(T9, T10, T11)</a><a href="#impl-Encodable">(T10, T11)</a><a href="#impl-Encodable">(T11,)</a><a href="#impl-Encodable">[T; 32]</a><a href="#impl-Encodable">[T; 31]</a><a href="#impl-Encodable">[T; 30]</a><a href="#impl-Encodable">[T; 29]</a><a href="#impl-Encodable">[T; 28]</a><a href="#impl-Encodable">[T; 27]</a><a href="#impl-Encodable">[T; 26]</a><a href="#impl-Encodable">[T; 25]</a><a href="#impl-Encodable">[T; 24]</a><a href="#impl-Encodable">[T; 23]</a><a href="#impl-Encodable">[T; 22]</a><a href="#impl-Encodable">[T; 21]</a><a href="#impl-Encodable">[T; 20]</a><a href="#impl-Encodable">[T; 19]</a><a href="#impl-Encodable">[T; 18]</a><a href="#impl-Encodable">[T; 17]</a><a href="#impl-Encodable">[T; 16]</a><a href="#impl-Encodable">[T; 15]</a><a href="#impl-Encodable">[T; 14]</a><a href="#impl-Encodable">[T; 13]</a><a href="#impl-Encodable">[T; 12]</a><a href="#impl-Encodable">[T; 11]</a><a href="#impl-Encodable">[T; 10]</a><a href="#impl-Encodable">[T; 9]</a><a href="#impl-Encodable">[T; 8]</a><a href="#impl-Encodable">[T; 7]</a><a href="#impl-Encodable">[T; 6]</a><a href="#impl-Encodable">[T; 5]</a><a href="#impl-Encodable">[T; 4]</a><a href="#impl-Encodable">[T; 3]</a><a href="#impl-Encodable">[T; 2]</a><a href="#impl-Encodable">[T; 1]</a><a href="#impl-Encodable">[T; 0]</a><a href="#impl-Encodable">Path</a><a href="#impl-Encodable">PathBuf</a><a href="#impl-Encodable">Cell&lt;T&gt;</a><a href="#impl-Encodable">RefCell&lt;T&gt;</a><a href="#impl-Encodable">Arc&lt;T&gt;</a><a href="#impl-Encodable">LinkedList&lt;T&gt;</a><a href="#impl-Encodable">VecDeque&lt;T&gt;</a><a href="#impl-Encodable">BTreeMap&lt;K, V&gt;</a><a href="#impl-Encodable">BTreeSet&lt;T&gt;</a><a href="#impl-Encodable">HashMap&lt;K, V&gt;</a><a href="#impl-Encodable">HashSet&lt;T&gt;</a></div><a class="sidebar-title" href="#implementors">Implementors</a></div><p class='location'><a href='index.html'>rustc_serialize</a></p><script>window.sidebarCurrent = {name: 'Encodable', 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'>rustc_serialize</a>::<wbr><a class="trait" href=''>Encodable</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/rustc_serialize/serialize.rs.html#851-854' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait Encodable {
fn <a href='#tymethod.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;;
}</pre><div class='docblock'><p>Trait for serializing a type.</p>
<p>This can be implemented for custom data types to allow them to be encoded
with <code>Encoder</code> implementations. Most of Rust's built-in or standard data
types (like <code>i32</code> and <code>Vec&lt;T&gt;</code>) have <code>Encodable</code> implementations provided by
this module.</p>
<p>Note that, in general, you should let the compiler implement this for you by
using the <code>derive(RustcEncodable)</code> attribute.</p>
<h1 id="examples" class="section-header"><a href="#examples">Examples</a></h1>
<pre class="rust rust-example-rendered">
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">rustc_serialize</span>;
<span class="attribute">#[<span class="ident">derive</span>(<span class="ident">RustcEncodable</span>)]</span>
<span class="kw">struct</span> <span class="ident">Point</span> {
<span class="ident">x</span>: <span class="ident">i32</span>,
<span class="ident">y</span>: <span class="ident">i32</span>,
}</pre>
<p>This generates code equivalent to:</p>
<pre class="rust rust-example-rendered">
<span class="kw">extern</span> <span class="kw">crate</span> <span class="ident">rustc_serialize</span>;
<span class="kw">use</span> <span class="ident">rustc_serialize</span>::<span class="ident">Encodable</span>;
<span class="kw">use</span> <span class="ident">rustc_serialize</span>::<span class="ident">Encoder</span>;
<span class="kw">struct</span> <span class="ident">Point</span> {
<span class="ident">x</span>: <span class="ident">i32</span>,
<span class="ident">y</span>: <span class="ident">i32</span>,
}
<span class="kw">impl</span> <span class="ident">Encodable</span> <span class="kw">for</span> <span class="ident">Point</span> {
<span class="kw">fn</span> <span class="ident">encode</span><span class="op">&lt;</span><span class="ident">S</span>: <span class="ident">Encoder</span><span class="op">&gt;</span>(<span class="kw-2">&amp;</span><span class="self">self</span>, <span class="ident">s</span>: <span class="kw-2">&amp;</span><span class="kw-2">mut</span> <span class="ident">S</span>) <span class="op">-&gt;</span> <span class="prelude-ty">Result</span><span class="op">&lt;</span>(), <span class="ident">S</span>::<span class="ident">Error</span><span class="op">&gt;</span> {
<span class="ident">s</span>.<span class="ident">emit_struct</span>(<span class="string">&quot;Point&quot;</span>, <span class="number">2</span>, <span class="op">|</span><span class="ident">s</span><span class="op">|</span> {
<span class="macro">try</span><span class="macro">!</span>(<span class="ident">s</span>.<span class="ident">emit_struct_field</span>(<span class="string">&quot;x&quot;</span>, <span class="number">0</span>, <span class="op">|</span><span class="ident">s</span><span class="op">|</span> {
<span class="ident">s</span>.<span class="ident">emit_i32</span>(<span class="self">self</span>.<span class="ident">x</span>)
}));
<span class="macro">try</span><span class="macro">!</span>(<span class="ident">s</span>.<span class="ident">emit_struct_field</span>(<span class="string">&quot;y&quot;</span>, <span class="number">1</span>, <span class="op">|</span><span class="ident">s</span><span class="op">|</span> {
<span class="ident">s</span>.<span class="ident">emit_i32</span>(<span class="self">self</span>.<span class="ident">y</span>)
}));
<span class="prelude-val">Ok</span>(())
})
}
}</pre>
</div>
<h2 id='required-methods' class='small-section-header'>
Required Methods<a href='#required-methods' class='anchor'></a>
</h2>
<div class='methods'>
<h3 id='tymethod.encode' class='method'><span id='encode.v' class='invisible'><code>fn <a href='#tymethod.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span></h3><div class='docblock'><p>Serialize a value using an <code>Encoder</code>.</p>
</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-Encodable' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><a href='#impl-Encodable' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#907-911' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode' class="method"><span id='encode.v-1' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#908-910' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-1' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a></code><a href='#impl-Encodable-1' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#919-923' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-1' class="method"><span id='encode.v-2' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#920-922' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-2' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a></code><a href='#impl-Encodable-2' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#931-935' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-2' class="method"><span id='encode.v-3' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#932-934' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-3' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a></code><a href='#impl-Encodable-3' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#943-947' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-3' class="method"><span id='encode.v-4' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#944-946' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-4' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a></code><a href='#impl-Encodable-4' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#955-959' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-4' class="method"><span id='encode.v-5' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#956-958' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-5' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.isize.html">isize</a></code><a href='#impl-Encodable-5' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#967-971' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-5' class="method"><span id='encode.v-6' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#968-970' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-6' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a></code><a href='#impl-Encodable-6' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#979-983' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-6' class="method"><span id='encode.v-7' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#980-982' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-7' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a></code><a href='#impl-Encodable-7' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#991-995' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-7' class="method"><span id='encode.v-8' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#992-994' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-8' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a></code><a href='#impl-Encodable-8' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1003-1007' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-8' class="method"><span id='encode.v-9' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1004-1006' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-9' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a></code><a href='#impl-Encodable-9' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1015-1019' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-9' class="method"><span id='encode.v-10' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1016-1018' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-10' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a></code><a href='#impl-Encodable-10' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1027-1031' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-10' class="method"><span id='encode.v-11' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1028-1030' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-11' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/string/struct.String.html" title="struct alloc::string::String">String</a></code><a href='#impl-Encodable-11' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1033-1037' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-11' class="method"><span id='encode.v-12' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1034-1036' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-12' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></code><a href='#impl-Encodable-12' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1045-1049' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-12' class="method"><span id='encode.v-13' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1046-1048' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-13' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a></code><a href='#impl-Encodable-13' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1057-1061' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-13' class="method"><span id='encode.v-14' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1058-1060' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-14' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><a href='#impl-Encodable-14' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1069-1073' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-14' class="method"><span id='encode.v-15' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1070-1072' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-15' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a></code><a href='#impl-Encodable-15' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1081-1085' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-15' class="method"><span id='encode.v-16' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1082-1084' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-16' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></code><a href='#impl-Encodable-16' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1093-1097' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-16' class="method"><span id='encode.v-17' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1094-1096' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-17' class='impl'><span class='in-band'><code>impl&lt;'a, T:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;'a </a>T</code><a href='#impl-Encodable-17' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1105-1109' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-17' class="method"><span id='encode.v-18' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1106-1108' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-18' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> + <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/boxed/struct.Box.html" title="struct alloc::boxed::Box">Box</a>&lt;T&gt;</code><a href='#impl-Encodable-18' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1111-1115' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-18' class="method"><span id='encode.v-19' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1112-1114' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-19' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/rc/struct.Rc.html" title="struct alloc::rc::Rc">Rc</a>&lt;T&gt;</code><a href='#impl-Encodable-19' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1130-1135' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-19' class="method"><span id='encode.v-20' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1132-1134' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-20' class='impl'><span class='in-band'><code>impl&lt;'a, T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/alloc/borrow/enum.Cow.html" title="enum alloc::borrow::Cow">Cow</a>&lt;'a, T&gt;</code><a href='#impl-Encodable-20' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1144-1149' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-20' class="method"><span id='encode.v-21' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1146-1148' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-21' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a></code><a href='#impl-Encodable-21' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1160-1169' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-21' class="method"><span id='encode.v-22' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1161-1168' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-22' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;T&gt;</code><a href='#impl-Encodable-22' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1171-1180' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-22' class="method"><span id='encode.v-23' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1172-1179' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-23' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;T&gt;</code><a href='#impl-Encodable-23' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1194-1203' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-23' class="method"><span id='encode.v-24' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1195-1202' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-24' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, E:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, E&gt;</code><a href='#impl-Encodable-24' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1217-1240' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-24' class="method"><span id='encode.v-25' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1218-1239' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-25' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/marker/struct.PhantomData.html" title="struct core::marker::PhantomData">PhantomData</a>&lt;T&gt;</code><a href='#impl-Encodable-25' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1264-1268' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-25' class="method"><span id='encode.v-26' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1265-1267' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-26' class='impl'><span class='in-band'><code>impl&lt;T0:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T1:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T2:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T3:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T4:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-26' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-26' class="method"><span id='encode.v-27' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-27' class='impl'><span class='in-band'><code>impl&lt;T1:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T2:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T3:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T4:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-27' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-27' class="method"><span id='encode.v-28' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-28' class='impl'><span class='in-band'><code>impl&lt;T2:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T3:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T4:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T2, T3, T4, T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-28' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-28' class="method"><span id='encode.v-29' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-29' class='impl'><span class='in-band'><code>impl&lt;T3:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T4:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T3, T4, T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-29' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-29' class="method"><span id='encode.v-30' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-30' class='impl'><span class='in-band'><code>impl&lt;T4:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T4, T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-30' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-30' class="method"><span id='encode.v-31' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-31' class='impl'><span class='in-band'><code>impl&lt;T5:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T5, T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-31' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-31' class="method"><span id='encode.v-32' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-32' class='impl'><span class='in-band'><code>impl&lt;T6:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T6, T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-32' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-32' class="method"><span id='encode.v-33' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-33' class='impl'><span class='in-band'><code>impl&lt;T7:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T7, T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-33' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-33' class="method"><span id='encode.v-34' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-34' class='impl'><span class='in-band'><code>impl&lt;T8:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T8, T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-34' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-34' class="method"><span id='encode.v-35' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-35' class='impl'><span class='in-band'><code>impl&lt;T9:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T9, T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-35' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-35' class="method"><span id='encode.v-36' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-36' class='impl'><span class='in-band'><code>impl&lt;T10:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>, T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T10, T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><a href='#impl-Encodable-36' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-36' class="method"><span id='encode.v-37' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-37' class='impl'><span class='in-band'><code>impl&lt;T11:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>T11<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">,)</a></code><a href='#impl-Encodable-37' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1303-1315' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-37' class="method"><span id='encode.v-38' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1305-1314' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-38' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 32]</a></code><a href='#impl-Encodable-38' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-38' class="method"><span id='encode.v-39' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-39' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 31]</a></code><a href='#impl-Encodable-39' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-39' class="method"><span id='encode.v-40' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-40' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 30]</a></code><a href='#impl-Encodable-40' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-40' class="method"><span id='encode.v-41' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-41' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 29]</a></code><a href='#impl-Encodable-41' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-41' class="method"><span id='encode.v-42' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-42' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 28]</a></code><a href='#impl-Encodable-42' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-42' class="method"><span id='encode.v-43' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-43' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 27]</a></code><a href='#impl-Encodable-43' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-43' class="method"><span id='encode.v-44' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-44' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 26]</a></code><a href='#impl-Encodable-44' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-44' class="method"><span id='encode.v-45' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-45' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 25]</a></code><a href='#impl-Encodable-45' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-45' class="method"><span id='encode.v-46' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-46' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 24]</a></code><a href='#impl-Encodable-46' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-46' class="method"><span id='encode.v-47' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-47' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 23]</a></code><a href='#impl-Encodable-47' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-47' class="method"><span id='encode.v-48' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-48' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 22]</a></code><a href='#impl-Encodable-48' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-48' class="method"><span id='encode.v-49' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-49' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 21]</a></code><a href='#impl-Encodable-49' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-49' class="method"><span id='encode.v-50' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-50' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 20]</a></code><a href='#impl-Encodable-50' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-50' class="method"><span id='encode.v-51' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-51' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 19]</a></code><a href='#impl-Encodable-51' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-51' class="method"><span id='encode.v-52' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-52' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 18]</a></code><a href='#impl-Encodable-52' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-52' class="method"><span id='encode.v-53' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-53' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 17]</a></code><a href='#impl-Encodable-53' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-53' class="method"><span id='encode.v-54' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-54' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 16]</a></code><a href='#impl-Encodable-54' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-54' class="method"><span id='encode.v-55' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-55' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 15]</a></code><a href='#impl-Encodable-55' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-55' class="method"><span id='encode.v-56' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-56' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 14]</a></code><a href='#impl-Encodable-56' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-56' class="method"><span id='encode.v-57' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-57' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 13]</a></code><a href='#impl-Encodable-57' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-57' class="method"><span id='encode.v-58' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-58' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 12]</a></code><a href='#impl-Encodable-58' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-58' class="method"><span id='encode.v-59' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-59' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 11]</a></code><a href='#impl-Encodable-59' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-59' class="method"><span id='encode.v-60' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-60' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 10]</a></code><a href='#impl-Encodable-60' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-60' class="method"><span id='encode.v-61' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-61' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 9]</a></code><a href='#impl-Encodable-61' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-61' class="method"><span id='encode.v-62' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-62' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 8]</a></code><a href='#impl-Encodable-62' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-62' class="method"><span id='encode.v-63' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-63' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 7]</a></code><a href='#impl-Encodable-63' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-63' class="method"><span id='encode.v-64' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-64' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 6]</a></code><a href='#impl-Encodable-64' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-64' class="method"><span id='encode.v-65' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-65' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 5]</a></code><a href='#impl-Encodable-65' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-65' class="method"><span id='encode.v-66' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-66' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 4]</a></code><a href='#impl-Encodable-66' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-66' class="method"><span id='encode.v-67' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-67' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 3]</a></code><a href='#impl-Encodable-67' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-67' class="method"><span id='encode.v-68' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-68' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 2]</a></code><a href='#impl-Encodable-68' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-68' class="method"><span id='encode.v-69' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-69' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 1]</a></code><a href='#impl-Encodable-69' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-69' class="method"><span id='encode.v-70' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-70' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">[</a>T<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.array.html">; 0]</a></code><a href='#impl-Encodable-70' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1339-1348' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-70' class="method"><span id='encode.v-71' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1340-1347' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-71' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.Path.html" title="struct std::path::Path">Path</a></code><a href='#impl-Encodable-71' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1358-1374' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-71' class="method"><span id='encode.v-72' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1364-1367' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-72' class='impl'><span class='in-band'><code>impl <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/path/struct.PathBuf.html" title="struct std::path::PathBuf">PathBuf</a></code><a href='#impl-Encodable-72' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1376-1380' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-72' class="method"><span id='encode.v-73' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1377-1379' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-73' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Copy.html" title="trait core::marker::Copy">Copy</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.Cell.html" title="struct core::cell::Cell">Cell</a>&lt;T&gt;</code><a href='#impl-Encodable-73' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1411-1415' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-73' class="method"><span id='encode.v-74' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1412-1414' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-74' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/core/cell/struct.RefCell.html" title="struct core::cell::RefCell">RefCell</a>&lt;T&gt;</code><a href='#impl-Encodable-74' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1428-1432' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-74' class="method"><span id='encode.v-75' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1429-1431' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-75' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/arc/struct.Arc.html" title="struct alloc::arc::Arc">Arc</a>&lt;T&gt;</code><a href='#impl-Encodable-75' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1440-1444' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-75' class="method"><span id='encode.v-76' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/serialize.rs.html#1441-1443' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-76' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/linked_list/struct.LinkedList.html" title="struct alloc::linked_list::LinkedList">LinkedList</a>&lt;T&gt;</code><a href='#impl-Encodable-76' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#18-29' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-76' class="method"><span id='encode.v-77' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#21-28' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-77' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/vec_deque/struct.VecDeque.html" title="struct alloc::vec_deque::VecDeque">VecDeque</a>&lt;T&gt;</code><a href='#impl-Encodable-77' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#43-52' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-77' class="method"><span id='encode.v-78' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#44-51' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-78' class='impl'><span class='in-band'><code>impl&lt;K:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>, V:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/btree/map/struct.BTreeMap.html" title="struct alloc::btree::map::BTreeMap">BTreeMap</a>&lt;K, V&gt;</code><a href='#impl-Encodable-78' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#66-81' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-78' class="method"><span id='encode.v-79' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#70-80' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-79' class='impl'><span class='in-band'><code>impl&lt;T:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html" title="trait core::cmp::Ord">Ord</a>&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/alloc/btree/set/struct.BTreeSet.html" title="struct alloc::btree::set::BTreeSet">BTreeSet</a>&lt;T&gt;</code><a href='#impl-Encodable-79' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#100-113' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-79' class="method"><span id='encode.v-80' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;S:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>S) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, S::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#103-112' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-80' class='impl'><span class='in-band'><code>impl&lt;K, V&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/map/struct.HashMap.html" title="struct std::collections::hash::map::HashMap">HashMap</a>&lt;K, V&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a>,&nbsp;</span></code><a href='#impl-Encodable-80' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#129-144' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-80' class="method"><span id='encode.v-81' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;E:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, e: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>E) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, E::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#133-143' title='goto source code'>[src]</a></span></h4>
</div></span><h3 id='impl-Encodable-81' class='impl'><span class='in-band'><code>impl&lt;T&gt; <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> for <a class="struct" href="https://doc.rust-lang.org/nightly/std/collections/hash/set/struct.HashSet.html" title="struct std::collections::hash::set::HashSet">HashSet</a>&lt;T&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="../rustc_serialize/trait.Encodable.html" title="trait rustc_serialize::Encodable">Encodable</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html" title="trait core::hash::Hash">Hash</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html" title="trait core::cmp::Eq">Eq</a>,&nbsp;</span></code><a href='#impl-Encodable-81' class='anchor'></a></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#163-174' title='goto source code'>[src]</a></span></h3>
<span class='docblock autohide'><div class='impl-items'><h4 id='method.encode-81' class="method"><span id='encode.v-82' class='invisible'><code>fn <a href='#method.encode' class='fnname'>encode</a>&lt;E:&nbsp;<a class="trait" href="../rustc_serialize/trait.Encoder.html" title="trait rustc_serialize::Encoder">Encoder</a>&gt;(&amp;self, s: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&amp;mut </a>E) -&gt; <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, E::<a class="type" href="../rustc_serialize/trait.Encoder.html#associatedtype.Error" title="type rustc_serialize::Encoder::Error">Error</a>&gt;</code></span><span class='out-of-band'><div class='ghost'></div><a class='srclink' href='../src/rustc_serialize/collection_impls.rs.html#164-173' 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'>
<li><div class='out-of-band'><a class='srclink' href='../src/rustc_serialize/json.rs.html#930-943' title='goto source code'>[src]</a></div><code>impl Encodable for <a class="enum" href="../rustc_serialize/json/enum.Json.html" title="enum rustc_serialize::json::Json">Json</a></code></li>
</ul><script type="text/javascript" async
src="../implementors/rustc_serialize/trait.Encodable.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 = "rustc_serialize";
</script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>