forked from diesel-rs/diesel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstruct.Serializer.html
More file actions
93 lines (93 loc) · 74 KB
/
Copy pathstruct.Serializer.html
File metadata and controls
93 lines (93 loc) · 74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!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="A structure for serializing Rust values into JSON."><meta name="keywords" content="rust, rustlang, rust-lang, Serializer"><title>Serializer in serde_json::ser - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../SourceCodePro-Semibold.ttf.woff2"><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="../../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../../dark.css" disabled><link rel="stylesheet" type="text/css" href="../../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../../storage.js"></script><script src="../../crates.js"></script><script defer src="../../main.js"></script>
<noscript><link rel="stylesheet" href="../../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">☰</button><a class="sidebar-logo" href="../../serde_json/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"></h2>
</nav>
<nav class="sidebar"><a class="sidebar-logo" href="../../serde_json/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div>
</a><h2 class="location"><a href="#">Serializer</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.into_inner">into_inner</a></li><li><a href="#method.new">new</a></li><li><a href="#method.pretty">pretty</a></li><li><a href="#method.with_formatter">with_formatter</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Serializer">Serializer</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe">RefUnwindSafe</a></li><li><a href="#impl-Send">Send</a></li><li><a href="#impl-Sync">Sync</a></li><li><a href="#impl-Unpin">Unpin</a></li><li><a href="#impl-UnwindSafe">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any">Any</a></li><li><a href="#impl-Borrow%3CT%3E">Borrow<T></a></li><li><a href="#impl-BorrowMut%3CT%3E">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E">From<T></a></li><li><a href="#impl-Into%3CU%3E">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E">TryInto<U></a></li></ul></div></section><h2 class="location"><a href="index.html">In serde_json::ser</a></h2><div id="sidebar-vars" data-name="Serializer" data-ty="struct" data-relpath=""></div><script defer src="sidebar-items.js"></script></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../../serde_json/index.html"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></a><nav class="sub"><div class="theme-picker hidden"><button id="theme-picker" aria-label="Pick another theme!" aria-haspopup="menu" title="themes"><img width="22" height="22" alt="Pick another theme!" src="../../brush.svg"></button><div id="theme-choices" role="menu"></div></div><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><button type="button" id="help-button" title="help">?</button><a id="settings-menu" href="../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../wheel.svg"></a></div></form></nav></div><section id="main-content" class="content"><div class="main-heading">
<h1 class="fqn"><span class="in-band">Struct <a href="../index.html">serde_json</a>::<wbr><a href="index.html">ser</a>::<wbr><a class="struct" href="#">Serializer</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../../src/serde_json/ser.rs.html#14-17">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">−</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Serializer<W, F = <a class="struct" href="struct.CompactFormatter.html" title="struct serde_json::ser::CompactFormatter">CompactFormatter</a>> { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A structure for serializing Rust values into JSON.</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#19-28">source</a></span><a href="#impl" class="anchor"></a><h3 class="code-header in-band">impl<W> <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#25-27">source</a></span><a href="#method.new" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>(writer: W) -> Self</h4></section></summary><div class="docblock"><p>Creates a new JSON serializer.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#30-39">source</a></span><a href="#impl-1" class="anchor"></a><h3 class="code-header in-band">impl<'a, W> <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, <a class="struct" href="struct.PrettyFormatter.html" title="struct serde_json::ser::PrettyFormatter">PrettyFormatter</a><'a>> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.pretty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#36-38">source</a></span><a href="#method.pretty" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.pretty" class="fnname">pretty</a>(writer: W) -> Self</h4></section></summary><div class="docblock"><p>Creates a new JSON pretty print serializer.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#41-58">source</a></span><a href="#impl-2" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>,<br> F: <a class="trait" href="trait.Formatter.html" title="trait serde_json::ser::Formatter">Formatter</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_formatter" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#49-51">source</a></span><a href="#method.with_formatter" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.with_formatter" class="fnname">with_formatter</a>(writer: W, formatter: F) -> Self</h4></section></summary><div class="docblock"><p>Creates a new JSON visitor whose output will be written to the writer
specified.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_inner" class="method has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#55-57">source</a></span><a href="#method.into_inner" class="anchor"></a><h4 class="code-header">pub fn <a href="#method.into_inner" class="fnname">into_inner</a>(self) -> W</h4></section></summary><div class="docblock"><p>Unwrap the <code>Writer</code> from the <code>Serializer</code>.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Serializer" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#60-499">source</a></span><a href="#impl-Serializer" class="anchor"></a><h3 class="code-header in-band">impl<'a, W, F> <a class="trait" href="../../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a> for &'a mut <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/std/io/trait.Write.html" title="trait std::io::Write">Write</a>,<br> F: <a class="trait" href="trait.Formatter.html" title="trait serde_json::ser::Formatter">Formatter</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_newtype_struct" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#260-265">source</a></span><a href="#method.serialize_newtype_struct" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_newtype_struct" class="fnname">serialize_newtype_struct</a><T>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T<br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> T: ?<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="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>, </span></h4></section></summary><div class="docblock"><p>Serialize newtypes without an object wrapper.</p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Ok" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Ok" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" class="associatedtype">Ok</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'><p>The output type produced by this <code>Serializer</code> during successful
serialization. Most serializers that produce text or binary output
should set <code>Ok = ()</code> and serialize into an <a href="https://doc.rust-lang.org/std/io/trait.Write.html"><code>io::Write</code></a> or buffer
contained within the <code>Serializer</code> instance. Serializers that build
in-memory data structures may be simplified by using <code>Ok</code> to propagate
the data structure around. <a href="../../serde/ser/trait.Serializer.html#associatedtype.Ok">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="struct" href="../struct.Error.html" title="struct serde_json::Error">Error</a></h4></section></summary><div class='docblock'><p>The error type when some error occurs during serialization.</p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeSeq" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeSeq" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq" class="associatedtype">SerializeSeq</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_seq"><code>serialize_seq</code></a> for serializing the content of the
sequence. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeTuple" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeTuple" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple" class="associatedtype">SerializeTuple</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_tuple"><code>serialize_tuple</code></a> for serializing the content of
the tuple. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeTupleStruct" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeTupleStruct" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct" class="associatedtype">SerializeTupleStruct</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_tuple_struct"><code>serialize_tuple_struct</code></a> for serializing the
content of the tuple struct. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeTupleVariant" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeTupleVariant" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant" class="associatedtype">SerializeTupleVariant</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_tuple_variant"><code>serialize_tuple_variant</code></a> for serializing the
content of the tuple variant. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeMap" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeMap" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeMap" class="associatedtype">SerializeMap</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_map"><code>serialize_map</code></a> for serializing the content of the
map. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeMap">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeStruct" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeStruct" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStruct" class="associatedtype">SerializeStruct</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_struct"><code>serialize_struct</code></a> for serializing the content of
the struct. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStruct">Read more</a></p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.SerializeStructVariant" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.SerializeStructVariant" class="anchor"></a><h4 class="code-header">type <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant" class="associatedtype">SerializeStructVariant</a> = Compound<'a, W, F></h4></section></summary><div class='docblock'><p>Type returned from <a href="#tymethod.serialize_struct_variant"><code>serialize_struct_variant</code></a> for serializing the
content of the struct variant. <a href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_bool" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#77-83">source</a></span><a href="#method.serialize_bool" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_bool" class="fnname">serialize_bool</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>bool</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_bool">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_i8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#86-92">source</a></span><a href="#method.serialize_i8" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i8" class="fnname">serialize_i8</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i8.html">i8</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>i8</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_i16" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#95-101">source</a></span><a href="#method.serialize_i16" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i16" class="fnname">serialize_i16</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i16.html">i16</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>i16</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_i32" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#104-110">source</a></span><a href="#method.serialize_i32" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i32" class="fnname">serialize_i32</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>i32</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_i64" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#113-119">source</a></span><a href="#method.serialize_i64" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i64" class="fnname">serialize_i64</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i64.html">i64</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>i64</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_i64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_i128" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#122-126">source</a></span><a href="#method.serialize_i128" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.serialize_i128" class="fnname">serialize_i128</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i128.html">i128</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>i128</code> value. <a href="../../serde/ser/trait.Serializer.html#method.serialize_i128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_u8" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#130-136">source</a></span><a href="#method.serialize_u8" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u8" class="fnname">serialize_u8</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>u8</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u8">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_u16" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#139-145">source</a></span><a href="#method.serialize_u16" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u16" class="fnname">serialize_u16</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u16.html">u16</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>u16</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u16">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_u32" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#148-154">source</a></span><a href="#method.serialize_u32" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u32" class="fnname">serialize_u32</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>u32</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_u64" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#157-163">source</a></span><a href="#method.serialize_u64" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u64" class="fnname">serialize_u64</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u64.html">u64</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>u64</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_u64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_u128" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#166-170">source</a></span><a href="#method.serialize_u128" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.serialize_u128" class="fnname">serialize_u128</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u128.html">u128</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>u128</code> value. <a href="../../serde/ser/trait.Serializer.html#method.serialize_u128">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_f32" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#174-190">source</a></span><a href="#method.serialize_f32" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_f32" class="fnname">serialize_f32</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>f32</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_f32">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_f64" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#193-209">source</a></span><a href="#method.serialize_f64" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_f64" class="fnname">serialize_f64</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize an <code>f64</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_f64">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_char" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#212-216">source</a></span><a href="#method.serialize_char" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_char" class="fnname">serialize_char</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.char.html">char</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a character. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_char">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_str" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#219-222">source</a></span><a href="#method.serialize_str" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_str" class="fnname">serialize_str</a>(self, value: &<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>&str</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_str">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_bytes" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#225-232">source</a></span><a href="#method.serialize_bytes" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_bytes" class="fnname">serialize_bytes</a>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">&[</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a><a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.slice.html">]</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a chunk of raw byte data. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_bytes">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_unit" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#235-241">source</a></span><a href="#method.serialize_unit" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit" class="fnname">serialize_unit</a>(self) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <code>()</code> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_unit_struct" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#244-246">source</a></span><a href="#method.serialize_unit_struct" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit_struct" class="fnname">serialize_unit_struct</a>(self, _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a unit struct like <code>struct Unit</code> or <code>PhantomData<T></code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit_struct">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_unit_variant" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#249-256">source</a></span><a href="#method.serialize_unit_variant" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit_variant" class="fnname">serialize_unit_variant</a>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variant_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> variant: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a><br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a unit variant like <code>E::A</code> in <code>enum E { A, B }</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_unit_variant">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_newtype_variant" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#268-305">source</a></span><a href="#method.serialize_newtype_variant" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_newtype_variant" class="fnname">serialize_newtype_variant</a><T>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variant_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> variant: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T<br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> T: ?<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="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>, </span></h4></section></summary><div class='docblock'><p>Serialize a newtype variant like <code>E::N</code> in <code>enum E { N(u8) }</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_newtype_variant">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_none" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#308-310">source</a></span><a href="#method.serialize_none" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_none" class="fnname">serialize_none</a>(self) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>></h4></section></summary><div class='docblock'><p>Serialize a <a href="https://doc.rust-lang.org/std/option/enum.Option.html#variant.None"><code>None</code></a> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_none">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_some" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#313-318">source</a></span><a href="#method.serialize_some" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_some" class="fnname">serialize_some</a><T>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> T: ?<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="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>, </span></h4></section></summary><div class='docblock'><p>Serialize a <a href="https://doc.rust-lang.org/std/option/enum.Option.html#variant.Some"><code>Some(T)</code></a> value. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_some">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_seq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#321-341">source</a></span><a href="#method.serialize_seq" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_seq" class="fnname">serialize_seq</a>(self, len: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq" title="type serde::ser::Serializer::SerializeSeq">SerializeSeq</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a variably sized sequence. This call must be
followed by zero or more calls to <code>serialize_element</code>, then a call to
<code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_seq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_tuple" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#344-346">source</a></span><a href="#method.serialize_tuple" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple" class="fnname">serialize_tuple</a>(self, len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple" title="type serde::ser::Serializer::SerializeTuple">SerializeTuple</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a statically sized sequence whose length will be
known at deserialization time without looking at the serialized data.
This call must be followed by zero or more calls to <code>serialize_element</code>,
then a call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_tuple_struct" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#349-355">source</a></span><a href="#method.serialize_tuple_struct" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_struct" class="fnname">serialize_tuple_struct</a>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct" title="type serde::ser::Serializer::SerializeTupleStruct">SerializeTupleStruct</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a tuple struct like <code>struct Rgb(u8, u8, u8)</code>. This
call must be followed by zero or more calls to <code>serialize_field</code>, then a
call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_struct">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_tuple_variant" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#358-383">source</a></span><a href="#method.serialize_tuple_variant" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_variant" class="fnname">serialize_tuple_variant</a>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variant_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> variant: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant" title="type serde::ser::Serializer::SerializeTupleVariant">SerializeTupleVariant</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a tuple variant like <code>E::T</code> in <code>enum E { T(u8, u8) }</code>. This call must be followed by zero or more calls to
<code>serialize_field</code>, then a call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_variant">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_map" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#386-406">source</a></span><a href="#method.serialize_map" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_map" class="fnname">serialize_map</a>(self, len: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeMap" title="type serde::ser::Serializer::SerializeMap">SerializeMap</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a map. This call must be followed by zero or more
calls to <code>serialize_key</code> and <code>serialize_value</code>, then a call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_map">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_struct" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#409-417">source</a></span><a href="#method.serialize_struct" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_struct" class="fnname">serialize_struct</a>(<br> self, <br> name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStruct" title="type serde::ser::Serializer::SerializeStruct">SerializeStruct</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a struct like <code>struct Rgb { r: u8, g: u8, b: u8 }</code>.
This call must be followed by zero or more calls to <code>serialize_field</code>,
then a call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_struct">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.serialize_struct_variant" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#420-445">source</a></span><a href="#method.serialize_struct_variant" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_struct_variant" class="fnname">serialize_struct_variant</a>(<br> self, <br> _name: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> _variant_index: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>, <br> variant: &'static <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>, <br> len: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a><br>) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant" title="type serde::ser::Serializer::SerializeStructVariant">SerializeStructVariant</a>></h4></section></summary><div class='docblock'><p>Begin to serialize a struct variant like <code>E::S</code> in <code>enum E { S { r: u8, g: u8, b: u8 } }</code>. This call must be followed by zero or more calls to
<code>serialize_field</code>, then a call to <code>end</code>. <a href="../../serde/ser/trait.Serializer.html#tymethod.serialize_struct_variant">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.collect_str" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde_json/ser.rs.html#447-498">source</a></span><a href="#method.collect_str" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.collect_str" class="fnname">collect_str</a><T>(self, value: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T) -> <a class="type" href="../type.Result.html" title="type serde_json::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>> <span class="where fmt-newline">where<br> T: ?<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="https://doc.rust-lang.org/nightly/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a>, </span></h4></section></summary><div class='docblock'><p>Serialize a string produced by an implementation of <code>Display</code>. <a href="../../serde/ser/trait.Serializer.html#method.collect_str">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.collect_seq" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde/ser/mod.rs.html#1275-1278">source</a></span><a href="#method.collect_seq" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.collect_seq" class="fnname">collect_seq</a><I>(self, iter: I) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,<br> <I as <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" title="type core::iter::traits::collect::IntoIterator::Item">Item</a>: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>, </span></h4></section></summary><div class='docblock'><p>Collect an iterator as a sequence. <a href="../../serde/ser/trait.Serializer.html#method.collect_seq">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.collect_map" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde/ser/mod.rs.html#1325-1329">source</a></span><a href="#method.collect_map" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.collect_map" class="fnname">collect_map</a><K, V, I>(self, iter: I) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, Self::<a class="associatedtype" href="../../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>> <span class="where fmt-newline">where<br> K: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,<br> V: <a class="trait" href="../../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,<br> I: <a class="trait" href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>, </span></h4></section></summary><div class='docblock'><p>Collect an iterator as a map. <a href="../../serde/ser/trait.Serializer.html#method.collect_map">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_human_readable" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../../src/serde/ser/mod.rs.html#1469">source</a></span><a href="#method.is_human_readable" class="anchor"></a><h4 class="code-header">fn <a href="../../serde/ser/trait.Serializer.html#method.is_human_readable" class="fnname">is_human_readable</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'><p>Determine whether <code>Serialize</code> implementations should serialize in
human-readable form. <a href="../../serde/ser/trait.Serializer.html#method.is_human_readable">Read more</a></p>
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe" class="impl has-srclink"><a href="#impl-RefUnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>,<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a>, </span></h3></section><section id="impl-Send" class="impl has-srclink"><a href="#impl-Send" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>,<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>, </span></h3></section><section id="impl-Sync" class="impl has-srclink"><a href="#impl-Sync" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>,<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a>, </span></h3></section><section id="impl-Unpin" class="impl has-srclink"><a href="#impl-Unpin" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>,<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a>, </span></h3></section><section id="impl-UnwindSafe" class="impl has-srclink"><a href="#impl-UnwindSafe" class="anchor"></a><h3 class="code-header in-band">impl<W, F> <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="../struct.Serializer.html" title="struct serde_json::Serializer">Serializer</a><W, F> <span class="where fmt-newline">where<br> F: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>,<br> W: <a class="trait" href="https://doc.rust-lang.org/nightly/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a>, </span></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#132-136">source</a></span><a href="#impl-Any" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br> T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/any.rs.html#133">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#209-214">source</a></span><a href="#impl-Borrow%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-222">source</a></span><a href="#impl-BorrowMut%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> T: ?<a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#557-562">source</a></span><a href="#impl-From%3CT%3E" class="anchor"></a><h3 class="code-header in-band">impl<T> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -> T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#541-552">source</a></span><a href="#impl-Into%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#549">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -> U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/nightly/core/convert/trait.From.html" title="From">From</a><T> for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#598-607">source</a></span><a href="#impl-TryFrom%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#604">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#583-592">source</a></span><a href="#impl-TryInto%3CU%3E" class="anchor"></a><h3 class="code-header in-band">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> U: <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>, </span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-2" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/nightly/src/core/convert/mod.rs.html#589">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details></div></section><section id="search" class="content hidden"></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="serde_json" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.62.0-nightly (de1bc0008 2022-04-21)" ></div>
</body></html>