mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-23 16:38:24 +00:00
107 lines
70 KiB
HTML
107 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><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-ac92e1bbe349e143.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.76.0 (07dca489a 2024-02-04)" data-channel="1.76.0" data-search-js="search-2b6ce74ff89ae146.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-f2adc0d6ca4d09fb.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-305769736d49e732.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-feafe1bb7466e4bd.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><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">☰</button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../toml/index.html">toml</a><span class="version">0.8.10</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-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<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-T">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-T">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-T">Into<U></a></li><li><a href="#impl-TryFrom%3CU%3E-for-T">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-T">TryInto<U></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"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../toml/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><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"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="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>−</span>]</button></span></div><pre class="rust item-decl"><code><div class="code-attribute">#[non_exhaustive]</div>pub struct Serializer<'d> { <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<'d> <a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a><'d></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: &'d mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> 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: &'d mut <a class="struct" href="https://doc.rust-lang.org/1.76.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) -> 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.Document.html"><code>toml_edit::Document</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-440">source</a><a href="#impl-Serializer-for-Serializer%3C'd%3E" class="anchor">§</a><h3 class="code-header">impl<'d> <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><'d></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.76.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<'d></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<'d></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<'d></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<'d></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<'d></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<'d></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><<<a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a><'d> as <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>>::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Ok" title="type serde::ser::Serializer::Ok">Ok</a>, <<a class="struct" href="struct.Serializer.html" title="struct toml::Serializer">Serializer</a><'d> as <a class="trait" href="../serde/ser/trait.Serializer.html" title="trait serde::ser::Serializer">Serializer</a>>::<a class="associatedtype" href="../serde/ser/trait.Serializer.html#associatedtype.Error" title="type serde::ser::Serializer::Error">Error</a>></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.76.0/std/primitive.bool.html">bool</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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.76.0/std/primitive.i8.html">i8</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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.76.0/std/primitive.i16.html">i16</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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.76.0/std/primitive.i32.html">i32</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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#a
|
|||
|
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.76.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) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></h4></section></summary><div class='docblock'>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></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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u32.html">u32</a>,
|
|||
|
variant: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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-361">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><T>(
|
|||
|
self,
|
|||
|
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
v: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>><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.76.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#363-383">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><T>(
|
|||
|
self,
|
|||
|
name: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u32.html">u32</a>,
|
|||
|
variant: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>><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.76.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#385-391">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.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#393-395">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.76.0/std/primitive.usize.html">usize</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#397-403">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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
len: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#405-413">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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
_variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u32.html">u32</a>,
|
|||
|
_variant: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
len: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#415-421">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.76.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#423-429">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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
len: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#431-439">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: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
_variant_index: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.u32.html">u32</a>,
|
|||
|
_variant: &'static <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.str.html">str</a>,
|
|||
|
_len: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.usize.html">usize</a>
|
|||
|
) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><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>></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#509">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.76.0/std/primitive.i128.html">i128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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#616">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.76.0/std/primitive.u128.html">u128</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>></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#1271-1274">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><I>(self, iter: I) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>><div class="where">where
|
|||
|
I: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a>,
|
|||
|
<I as <a class="trait" href="https://doc.rust-lang.org/1.76.0/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/1.76.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#1308-1312">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><K, V, I>(self, iter: I) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>><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.76.0/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/1.76.0/std/primitive.tuple.html">(K, V)</a>>,</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#1349-1351">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><T>(self, value: <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/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>><div class="where">where
|
|||
|
T: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/fmt/trait.Display.html" title="trait core::fmt::Display">Display</a> + ?<a class="trait" href="https://doc.rust-lang.org/1.76.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#1435">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>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.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-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<'d> <a class="trait" href="https://doc.rust-lang.org/1.76.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><'d></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<'d> <a class="trait" href="https://doc.rust-lang.org/1.76.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><'d></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<'d> <a class="trait" href="https://doc.rust-lang.org/1.76.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><'d></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<'d> <a class="trait" href="https://doc.rust-lang.org/1.76.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><'d></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<'d> !<a class="trait" href="https://doc.rust-lang.org/1.76.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><'d></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.76.0/src/core/any.rs.html#140">source</a><a href="#impl-Any-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.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.76.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.76.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.76.0/core/any/trait.Any.html#tymethod.type_id" class="fn">type_id</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.76.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.76.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.76.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<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T<div class="where">where
|
|||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.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.76.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.76.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fn">borrow</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&T</a></h4></section></summary><div class='docblock'>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.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.76.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<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<div class="where">where
|
|||
|
T: ?<a class="trait" href="https://doc.rust-lang.org/1.76.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.76.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.76.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fn">borrow_mut</a>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.76.0/std/primitive.reference.html">&mut T</a></h4></section></summary><div class='docblock'>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.76.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.76.0/src/core/convert/mod.rs.html#763">source</a><a href="#impl-From%3CT%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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.76.0/src/core/convert/mod.rs.html#766">source</a><a href="#method.from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html#tymethod.from" class="fn">from</a>(t: T) -> 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.76.0/src/core/convert/mod.rs.html#747-749">source</a><a href="#impl-Into%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><U> for T<div class="where">where
|
|||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T>,</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.76.0/src/core/convert/mod.rs.html#756">source</a><a href="#method.into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html#tymethod.into" class="fn">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/1.76.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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.76.0/src/core/convert/mod.rs.html#803-805">source</a><a href="#impl-TryFrom%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U> for T<div class="where">where
|
|||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a><T>,</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.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.76.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.76.0/src/core/convert/mod.rs.html#810">source</a><a href="#method.try_from" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fn">try_from</a>(value: U) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <T as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><U>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></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.76.0/src/core/convert/mod.rs.html#788-790">source</a><a href="#impl-TryInto%3CU%3E-for-T" class="anchor">§</a><h3 class="code-header">impl<T, U> <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T<div class="where">where
|
|||
|
U: <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>,</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.76.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.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.76.0/src/core/convert/mod.rs.html#795">source</a><a href="#method.try_into" class="anchor">§</a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fn">try_into</a>(self) -> <a class="enum" href="https://doc.rust-lang.org/1.76.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <U as <a class="trait" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a><T>>::<a class="associatedtype" href="https://doc.rust-lang.org/1.76.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><div class='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>
|