edlang/toml/struct.Serializer.html
2024-08-01 07:04:26 +00:00

106 lines
70 KiB
HTML

<!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="Serialization for TOML documents."><title>Serializer in toml - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="toml" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.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" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../toml/index.html">toml</a><span class="version">0.8.19</span></h2></div><h2 class="location"><a href="#">Serializer</a></h2><div class="sidebar-elems"><section><h3><a href="#implementations">Methods</a></h3><ul class="block method"><li><a href="#method.new">new</a></li><li><a href="#method.pretty">pretty</a></li></ul><h3><a href="#trait-implementations">Trait Implementations</a></h3><ul class="block trait-implementation"><li><a href="#impl-Serializer-for-Serializer%3C'd%3E">Serializer</a></li></ul><h3><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul class="block synthetic-implementation"><li><a href="#impl-UnwindSafe-for-Serializer%3C'd%3E">!UnwindSafe</a></li><li><a href="#impl-Freeze-for-Serializer%3C'd%3E">Freeze</a></li><li><a href="#impl-RefUnwindSafe-for-Serializer%3C'd%3E">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Serializer%3C'd%3E">Send</a></li><li><a href="#impl-Sync-for-Serializer%3C'd%3E">Sync</a></li><li><a href="#impl-Unpin-for-Serializer%3C'd%3E">Unpin</a></li></ul><h3><a href="#blanket-implementations">Blanket Implementations</a></h3><ul class="block blanket-implementation"><li><a href="#impl-Any-for-T">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-T">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-T">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-T">Into&lt;U&gt;</a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto&lt;U&gt;</a></li></ul></section><h2><a href="index.html">In crate toml</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Struct <a href="index.html">toml</a>::<wbr><a class="struct" href="#">Serializer</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/toml/ser.rs.html#143-146">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code><div class="code-attribute">#[non_exhaustive]</div>pub struct Serializer&lt;'d&gt; { <span class="comment">/* private fields */</span> }</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Serialization for TOML documents.</p>
<p>This structure implements serialization support for TOML to serialize an
arbitrary type to TOML. Note that the TOML format does not support all
datatypes in Rust, such as enums, tuples, and tuple structs. These types
will generate an error when serialized.</p>
<p>Currently a serializer always writes its output to an in-memory <code>String</code>,
which is passed in when creating the serializer itself.</p>
<p>To serialize TOML values, instead of documents, see <a href="ser/struct.ValueSerializer.html" title="struct toml::ser::ValueSerializer"><code>ValueSerializer</code></a>.</p>
</div></details><h2 id="implementations" class="section-header">Implementations<a href="#implementations" class="anchor">§</a></h2><div id="implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Serializer%3C'd%3E" class="impl"><a class="src rightside" href="../src/toml/ser.rs.html#149-170">source</a><a href="#impl-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><a class="src rightside" href="../src/toml/ser.rs.html#154-159">source</a><h4 class="code-header">pub fn <a href="#method.new" class="fn">new</a>(dst: &amp;'d mut <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Creates a new serializer which will emit TOML into the buffer provided.</p>
<p>The serializer can then be used to serialize a type after which the data
will be present in <code>dst</code>.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.pretty" class="method"><a class="src rightside" href="../src/toml/ser.rs.html#165-169">source</a><h4 class="code-header">pub fn <a href="#method.pretty" class="fn">pretty</a>(dst: &amp;'d mut <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -&gt; Self</h4></section></summary><div class="docblock"><p>Apply a default “pretty” policy to the document</p>
<p>For greater customization, instead serialize to a
<a href="https://docs.rs/toml_edit/latest/toml_edit/struct.DocumentMut.html"><code>toml_edit::DocumentMut</code></a>.</p>
</div></details></div></details></div><h2 id="trait-implementations" class="section-header">Trait Implementations<a href="#trait-implementations" class="anchor">§</a></h2><div id="trait-implementations-list"><details class="toggle implementors-toggle" open><summary><section id="impl-Serializer-for-Serializer%3C'd%3E" class="impl"><a class="src rightside" href="../src/toml/ser.rs.html#173-436">source</a><a href="#impl-Serializer-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a> for <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Ok" class="associatedtype trait-impl"><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/1.80.0/std/primitive.unit.html">()</a></h4></section></summary><div class='docblock'>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.</div></details><details class="toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl"><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="ser/struct.Error.html" title="struct toml::ser::Error">Error</a></h4></section></summary><div class='docblock'>The error type when some error occurs during serialization.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeSeq" class="associatedtype trait-impl"><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> = SerializeDocumentArray&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_seq"><code>serialize_seq</code></a> for serializing the content of the
sequence.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeTuple" class="associatedtype trait-impl"><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> = SerializeDocumentArray&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_tuple"><code>serialize_tuple</code></a> for serializing the content of
the tuple.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeTupleStruct" class="associatedtype trait-impl"><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> = SerializeDocumentArray&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_tuple_struct"><code>serialize_tuple_struct</code></a> for serializing the
content of the tuple struct.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeTupleVariant" class="associatedtype trait-impl"><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> = SerializeDocumentArray&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_tuple_variant"><code>serialize_tuple_variant</code></a> for serializing the
content of the tuple variant.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeMap" class="associatedtype trait-impl"><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> = SerializeDocumentTable&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_map"><code>serialize_map</code></a> for serializing the content of the
map.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeStruct" class="associatedtype trait-impl"><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> = SerializeDocumentTable&lt;'d&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_struct"><code>serialize_struct</code></a> for serializing the content of
the struct.</div></details><details class="toggle" open><summary><section id="associatedtype.SerializeStructVariant" class="associatedtype trait-impl"><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> = <a class="struct" href="../serde/ser/impossible/struct.Impossible.html" title="struct serde::ser::impossible::Impossible">Impossible</a>&lt;&lt;<a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt; as <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>&gt;::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, &lt;<a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt; as <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>&gt;::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Type returned from <a href="#tymethod.serialize_struct_variant"><code>serialize_struct_variant</code></a> for serializing the
content of the struct variant.</div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_bool" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#184-190">source</a><a href="#method.serialize_bool" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_bool" class="fn">serialize_bool</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>bool</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_bool">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_i8" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#192-198">source</a><a href="#method.serialize_i8" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i8" class="fn">serialize_i8</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.i8.html">i8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>i8</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i8">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_i16" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#200-206">source</a><a href="#method.serialize_i16" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i16" class="fn">serialize_i16</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.i16.html">i16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>i16</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i16">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_i32" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#208-214">source</a><a href="#method.serialize_i32" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i32" class="fn">serialize_i32</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.i32.html">i32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>i32</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i32">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_i64" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#216-222">source</a><a href="#method.serialize_i64" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i64" class="fn">serialize_i64</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.i64.html">i64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>i64</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_i64">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_u8" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#224-230">source</a><a href="#method.serialize_u8" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u8" class="fn">serialize_u8</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u8.html">u8</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>u8</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u8">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_u16" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#232-238">source</a><a href="#method.serialize_u16" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u16" class="fn">serialize_u16</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u16.html">u16</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>u16</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u16">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_u32" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#240-246">source</a><a href="#method.serialize_u32" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u32" class="fn">serialize_u32</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>u32</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u32">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_u64" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#248-254">source</a><a href="#method.serialize_u64" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u64" class="fn">serialize_u64</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u64.html">u64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>u64</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_u64">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_f32" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#256-262">source</a><a href="#method.serialize_f32" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_f32" class="fn">serialize_f32</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.f32.html">f32</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>f32</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_f32">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_f64" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#264-270">source</a><a href="#method.serialize_f64" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_f64" class="fn">serialize_f64</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.f64.html">f64</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>f64</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_f64">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_char" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#272-278">source</a><a href="#method.serialize_char" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_char" class="fn">serialize_char</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.char.html">char</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a character. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_char">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_str" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#280-286">source</a><a href="#method.serialize_str" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_str" class="fn">serialize_str</a>(self, v: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>&amp;str</code>. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_bytes" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#288-294">source</a><a href="#method.serialize_bytes" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_bytes" class="fn">serialize_bytes</a>(self, v: &amp;[<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u8.html">u8</a>]) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a chunk of raw byte data. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_bytes">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_none" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#296-302">source</a><a href="#method.serialize_none" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_none" class="fn">serialize_none</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_some" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#304-313">source</a><a href="#method.serialize_some" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_some" class="fn">serialize_some</a>&lt;T&gt;(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;T</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
T: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_unit" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#315-321">source</a><a href="#method.serialize_unit" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_unit" class="fn">serialize_unit</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>()</code> value. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_unit">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_unit_struct" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#323-329">source</a><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="fn">serialize_unit_struct</a>(
self,
name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a unit struct like <code>struct Unit</code> or <code>PhantomData&lt;T&gt;</code>. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_unit_struct">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_unit_variant" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#331-346">source</a><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="fn">serialize_unit_variant</a>(
self,
name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>,
variant: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_newtype_struct" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#348-357">source</a><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="fn">serialize_newtype_struct</a>&lt;T&gt;(
self,
name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;T</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
T: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Serialize a newtype struct like <code>struct Millimeters(u8)</code>. <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_newtype_struct">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_newtype_variant" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#359-379">source</a><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="fn">serialize_newtype_variant</a>&lt;T&gt;(
self,
name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>,
variant: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
value: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;T</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
T: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_seq" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#381-387">source</a><a href="#method.serialize_seq" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_seq" class="fn">serialize_seq</a>(
self,
len: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq" title="type serde::ser::Serializer::SerializeSeq">SerializeSeq</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_tuple" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#389-391">source</a><a href="#method.serialize_tuple" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_tuple" class="fn">serialize_tuple</a>(
self,
len: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple" title="type serde::ser::Serializer::SerializeTuple">SerializeTuple</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_tuple_struct" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#393-399">source</a><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="fn">serialize_tuple_struct</a>(
self,
_name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
len: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct" title="type serde::ser::Serializer::SerializeTupleStruct">SerializeTupleStruct</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_tuple_variant" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#401-409">source</a><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="fn">serialize_tuple_variant</a>(
self,
_name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
_variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>,
_variant: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
len: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant" title="type serde::ser::Serializer::SerializeTupleVariant">SerializeTupleVariant</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_map" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#411-417">source</a><a href="#method.serialize_map" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_map" class="fn">serialize_map</a>(
self,
len: <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>&gt;,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeMap" title="type serde::ser::Serializer::SerializeMap">SerializeMap</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_struct" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#419-425">source</a><a href="#method.serialize_struct" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#tymethod.serialize_struct" class="fn">serialize_struct</a>(
self,
_name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
len: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeStruct" title="type serde::ser::Serializer::SerializeStruct">SerializeStruct</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_struct_variant" class="method trait-impl"><a class="src rightside" href="../src/toml/ser.rs.html#427-435">source</a><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="fn">serialize_struct_variant</a>(
self,
name: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
_variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u32.html">u32</a>,
_variant: &amp;'static <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
_len: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant" title="type serde::ser::Serializer::SerializeStructVariant">SerializeStructVariant</a>, Self::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>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></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_i128" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#516">source</a><a href="#method.serialize_i128" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#method.serialize_i128" class="fn">serialize_i128</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.i128.html">i128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize an <code>i128</code> value. <a href="../serde/ser/trait.Serializer.html#method.serialize_i128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.serialize_u128" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#623">source</a><a href="#method.serialize_u128" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#method.serialize_u128" class="fn">serialize_u128</a>(self, v: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.u128.html">u128</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;</h4></section></summary><div class='docblock'>Serialize a <code>u128</code> value. <a href="../serde/ser/trait.Serializer.html#method.serialize_u128">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect_seq" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#1281-1284">source</a><a href="#method.collect_seq" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#method.collect_seq" class="fn">collect_seq</a>&lt;I&gt;(self, iter: I) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
I: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
&lt;I as <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.80.0/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>,</div></h4></section></summary><div class='docblock'>Collect an iterator as a sequence. <a href="../serde/ser/trait.Serializer.html#method.collect_seq">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect_map" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#1318-1322">source</a><a href="#method.collect_map" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#method.collect_map" class="fn">collect_map</a>&lt;K, V, I&gt;(self, iter: I) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
K: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,
V: <a class="trait" href="../serde/ser/trait.Serialize.html" title="trait serde::ser::Serialize">Serialize</a>,
I: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>&lt;Item = <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.tuple.html">(K, V)</a>&gt;,</div></h4></section></summary><div class='docblock'>Collect an iterator as a map. <a href="../serde/ser/trait.Serializer.html#method.collect_map">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.collect_str" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#1359-1361">source</a><a href="#method.collect_str" class="anchor">§</a><h4 class="code-header">fn <a href="../serde/ser/trait.Serializer.html#method.collect_str" class="fn">collect_str</a>&lt;T&gt;(self, value: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;T</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;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>&gt;<div class="where">where
T: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><div class='docblock'>Serialize a string produced by an implementation of <code>Display</code>. <a href="../serde/ser/trait.Serializer.html#method.collect_str">Read more</a></div></details><details class="toggle method-toggle" open><summary><section id="method.is_human_readable" class="method trait-impl"><a class="src rightside" href="../src/serde/ser/mod.rs.html#1445">source</a><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="fn">is_human_readable</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a></h4></section></summary><div class='docblock'>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></div></details></div></details></div><h2 id="synthetic-implementations" class="section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor">§</a></h2><div id="synthetic-implementations-list"><section id="impl-Freeze-for-Serializer%3C'd%3E" class="impl"><a href="#impl-Freeze-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Freeze.html" title="trait core::marker::Freeze">Freeze</a> for <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section><section id="impl-RefUnwindSafe-for-Serializer%3C'd%3E" class="impl"><a href="#impl-RefUnwindSafe-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/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 toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section><section id="impl-Send-for-Serializer%3C'd%3E" class="impl"><a href="#impl-Send-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section><section id="impl-Sync-for-Serializer%3C'd%3E" class="impl"><a href="#impl-Sync-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section><section id="impl-Unpin-for-Serializer%3C'd%3E" class="impl"><a href="#impl-Unpin-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section><section id="impl-UnwindSafe-for-Serializer%3C'd%3E" class="impl"><a href="#impl-UnwindSafe-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl&lt;'d&gt; !<a class="trait" href="https://doc.rust-lang.org/1.80.0/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 toml::Serializer">Serializer</a>&lt;'d&gt;</h3></section></div><h2 id="blanket-implementations" class="section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor">§</a></h2><div id="blanket-implementations-list"><details class="toggle implementors-toggle"><summary><section id="impl-Any-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T<div class="where">where
T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/any.rs.html#141">source</a><a href="#method.type_id" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.80.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.80.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/borrow.rs.html#208">source</a><a href="#impl-Borrow%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/borrow.rs.html#210">source</a><a href="#method.borrow" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/borrow.rs.html#216">source</a><a href="#impl-BorrowMut%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T<div class="where">where
T: ?<a class="trait" href="https://doc.rust-lang.org/1.80.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/borrow.rs.html#217">source</a><a href="#method.borrow_mut" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.reference.html">&amp;mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.80.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#765">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#768">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#748-750">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle method-toggle" open><summary><section id="method.into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#758">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.Into.html#tymethod.into" class="fn">into</a>(self) -&gt; 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/1.80.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#805-807">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl"><a href="#associatedtype.Error-1" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#812">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details><details class="toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-T" class="impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#790-792">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T<div class="where">where
U: <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,</div></h3></section></summary><div class="impl-items"><details class="toggle" open><summary><section id="associatedtype.Error-2" class="associatedtype trait-impl"><a href="#associatedtype.Error-2" class="anchor">§</a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'>The type returned in the event of a conversion error.</div></details><details class="toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl"><a class="src rightside" href="https://doc.rust-lang.org/1.80.0/src/core/convert/mod.rs.html#797">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.80.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>