<main><divclass="width-limiter"><navclass="sub"><formclass="search-form"><span></span><divid="sidebar-button"tabindex="-1"><ahref="../toml/all.html"title="show sidebar"></a></div><inputclass="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"><divid="help-button"tabindex="-1"><ahref="../help.html"title="help">?</a></div><divid="settings-menu"tabindex="-1"><ahref="../settings.html"title="settings"><imgwidth="22"height="22"alt="Change settings"src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><sectionid="main-content"class="content"><divclass="main-heading"><h1>Struct <ahref="index.html">toml</a>::<wbr><aclass="struct"href="#">Serializer</a><buttonid="copy-path"title="Copy item path to clipboard"><imgsrc="../static.files/clipboard-7571035ce49a181d.svg"width="19"height="18"alt="Copy item path"></button></h1><spanclass="out-of-band"><aclass="src"href="../src/toml/ser.rs.html#143-146">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code><divclass="code-attribute">#[non_exhaustive]</div>pub struct Serializer<'d> { <spanclass="comment">/* private fields */</span> }</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="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 <ahref="ser/struct.ValueSerializer.html"title="struct toml::ser::ValueSerializer"><code>ValueSerializer</code></a>.</p>
</div></details><h2id="implementations"class="section-header">Implementations<ahref="#implementations"class="anchor">§</a></h2><divid="implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Serializer%3C'd%3E"class="impl"><aclass="src rightside"href="../src/toml/ser.rs.html#149-170">source</a><ahref="#impl-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.new"class="method"><aclass="src rightside"href="../src/toml/ser.rs.html#154-159">source</a><h4class="code-header">pub fn <ahref="#method.new"class="fn">new</a>(dst: &'d mut <aclass="struct"href="https://doc.rust-lang.org/1.78.0/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>) -> Self</h4></section></summary><divclass="docblock"><p>Creates a new serializer which will emit TOML into the buffer provided.</p>
</div></details></div></details></div><h2id="trait-implementations"class="section-header">Trait Implementations<ahref="#trait-implementations"class="anchor">§</a></h2><divid="trait-implementations-list"><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Serializer-for-Serializer%3C'd%3E"class="impl"><aclass="src rightside"href="../src/toml/ser.rs.html#173-440">source</a><ahref="#impl-Serializer-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Ok"class="associatedtype trait-impl"><ahref="#associatedtype.Ok"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.Ok"class="associatedtype">Ok</a> = <aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.unit.html">()</a></h4></section></summary><divclass='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 <ahref="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><detailsclass="toggle"open><summary><sectionid="associatedtype.Error"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="struct"href="ser/struct.Error.html"title="struct toml::ser::Error">Error</a></h4></section></summary><divclass='docblock'>The error type when some error occurs during serialization.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeSeq"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeSeq"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq"class="associatedtype">SerializeSeq</a> = SerializeDocumentArray<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_seq"><code>serialize_seq</code></a> for serializing the content of the
sequence.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeTuple"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeTuple"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple"class="associatedtype">SerializeTuple</a> = SerializeDocumentArray<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_tuple"><code>serialize_tuple</code></a> for serializing the content of
the tuple.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeTupleStruct"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeTupleStruct"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct"class="associatedtype">SerializeTupleStruct</a> = SerializeDocumentArray<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_tuple_struct"><code>serialize_tuple_struct</code></a> for serializing the
content of the tuple struct.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeTupleVariant"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeTupleVariant"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant"class="associatedtype">SerializeTupleVariant</a> = SerializeDocumentArray<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_tuple_variant"><code>serialize_tuple_variant</code></a> for serializing the
content of the tuple variant.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeMap"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeMap"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeMap"class="associatedtype">SerializeMap</a> = SerializeDocumentTable<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_map"><code>serialize_map</code></a> for serializing the content of the
map.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeStruct"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeStruct"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeStruct"class="associatedtype">SerializeStruct</a> = SerializeDocumentTable<'d></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_struct"><code>serialize_struct</code></a> for serializing the content of
the struct.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.SerializeStructVariant"class="associatedtype trait-impl"><ahref="#associatedtype.SerializeStructVariant"class="anchor">§</a><h4class="code-header">type <ahref="../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant"class="associatedtype">SerializeStructVariant</a> = <aclass="struct"href="../serde/ser/impossible/struct.Impossible.html"title="struct serde::ser::impossible::Impossible">Impossible</a><<<aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d> as <aclass="trait"href="../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>>::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, <<aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d> as <aclass="trait"href="../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>>::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='docblock'>Type returned from <ahref="#tymethod.serialize_struct_variant"><code>serialize_struct_variant</code></a> for serializing the
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='docblock'>Serialize a unit struct like <code>struct Unit</code> or <code>PhantomData<T></code>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_unit_struct">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_unit_variant"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#331-346">source</a><ahref="#method.serialize_unit_variant"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_unit_variant"class="fn">serialize_unit_variant</a>(
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='docblock'>Serialize a unit variant like <code>E::A</code> in <code>enum E { A, B }</code>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_unit_variant">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_newtype_struct"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#348-361">source</a><ahref="#method.serialize_newtype_struct"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_newtype_struct"class="fn">serialize_newtype_struct</a><T>(
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeSeq"title="type serde::ser::Serializer::SerializeSeq">SerializeSeq</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='docblock'>Begin to serialize a variably sized sequence. This call must be
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTuple"title="type serde::ser::Serializer::SerializeTuple">SerializeTuple</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='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>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_tuple">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_tuple_struct"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#397-403">source</a><ahref="#method.serialize_tuple_struct"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_struct"class="fn">serialize_tuple_struct</a>(
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleStruct"title="type serde::ser::Serializer::SerializeTupleStruct">SerializeTupleStruct</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='docblock'>Begin to serialize a tuple struct like <code>struct Rgb(u8, u8, u8)</code>. This
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeTupleVariant"title="type serde::ser::Serializer::SerializeTupleVariant">SerializeTupleVariant</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='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>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_tuple_variant">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_map"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#415-421">source</a><ahref="#method.serialize_map"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_map"class="fn">serialize_map</a>(
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeMap"title="type serde::ser::Serializer::SerializeMap">SerializeMap</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='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>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_map">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_struct"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#423-429">source</a><ahref="#method.serialize_struct"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_struct"class="fn">serialize_struct</a>(
This call must be followed by zero or more calls to <code>serialize_field</code>,
then a call to <code>end</code>. <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_struct">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize_struct_variant"class="method trait-impl"><aclass="src rightside"href="../src/toml/ser.rs.html#431-439">source</a><ahref="#method.serialize_struct_variant"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#tymethod.serialize_struct_variant"class="fn">serialize_struct_variant</a>(
) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.SerializeStructVariant"title="type serde::ser::Serializer::SerializeStructVariant">SerializeStructVariant</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>></h4></section></summary><divclass='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
I: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.tuple.html">(K, V)</a>>,</div></h4></section></summary><divclass='docblock'>Collect an iterator as a map. <ahref="../serde/ser/trait.Serializer.html#method.collect_map">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.collect_str"class="method trait-impl"><aclass="src rightside"href="../src/serde/ser/mod.rs.html#1352-1354">source</a><ahref="#method.collect_str"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#method.collect_str"class="fn">collect_str</a><T>(self, value: <aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.reference.html">&T</a>) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, Self::<aclass="associatedtype"href="../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass='docblock'>Serialize a string produced by an implementation of <code>Display</code>. <ahref="../serde/ser/trait.Serializer.html#method.collect_str">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_human_readable"class="method trait-impl"><aclass="src rightside"href="../src/serde/ser/mod.rs.html#1438">source</a><ahref="#method.is_human_readable"class="anchor">§</a><h4class="code-header">fn <ahref="../serde/ser/trait.Serializer.html#method.is_human_readable"class="fn">is_human_readable</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'>Determine whether <code>Serialize</code> implementations should serialize in
human-readable form. <ahref="../serde/ser/trait.Serializer.html#method.is_human_readable">Read more</a></div></details></div></details></div><h2id="synthetic-implementations"class="section-header">Auto Trait Implementations<ahref="#synthetic-implementations"class="anchor">§</a></h2><divid="synthetic-implementations-list"><sectionid="impl-Freeze-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-Freeze-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Freeze.html"title="trait core::marker::Freeze">Freeze</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section><sectionid="impl-RefUnwindSafe-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-RefUnwindSafe-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section><sectionid="impl-Send-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-Send-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Send.html"title="trait core::marker::Send">Send</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section><sectionid="impl-Sync-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-Sync-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sync.html"title="trait core::marker::Sync">Sync</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section><sectionid="impl-Unpin-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-Unpin-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Unpin.html"title="trait core::marker::Unpin">Unpin</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section><sectionid="impl-UnwindSafe-for-Serializer%3C'd%3E"class="impl"><ahref="#impl-UnwindSafe-for-Serializer%3C'd%3E"class="anchor">§</a><h3class="code-header">impl<'d> !<aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/panic/unwind_safe/trait.UnwindSafe.html"title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <aclass="struct"href="struct.Serializer.html"title="struct toml::Serializer">Serializer</a><'d></h3></section></div><h2id="blanket-implementations"class="section-header">Blanket Implementations<ahref="#blanket-implementations"class="anchor">§</a></h2><divid="blanket-implementations-list"><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Any-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/any.rs.html#140">source</a><ahref="#impl-Any-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T<divclass="where">where
T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.type_id"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/any.rs.html#141">source</a><ahref="#method.type_id"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/any/trait.Any.html#tymethod.type_id"class="fn">type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.78.0/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></h4></section></summary><divclass='docblock'>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/1.78.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Borrow%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#208">source</a><ahref="#impl-Borrow%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#210">source</a><ahref="#method.borrow"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/borrow/trait.Borrow.html#tymethod.borrow"class="fn">borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.reference.html">&T</a></h4></section></summary><divclass='docblock'>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.78.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-BorrowMut%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#216">source</a><ahref="#impl-BorrowMut%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T<divclass="where">where
T: ?<aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.borrow_mut"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/borrow.rs.html#217">source</a><ahref="#method.borrow_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut"class="fn">borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/1.78.0/std/primitive.reference.html">&mut T</a></h4></section></summary><divclass='docblock'>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/1.78.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-From%3CT%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#765">source</a><ahref="#impl-From%3CT%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html"title="trait core::convert::From">From</a><T> for T</h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#768">source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(t: T) -> T</h4></section></summary><divclass="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-Into%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#748-750">source</a><ahref="#impl-Into%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><U> for T<divclass="where">where
<code><ahref="https://doc.rust-lang.org/1.78.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><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryFrom%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#805-807">source</a><ahref="#impl-TryFrom%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-2"class="associatedtype trait-impl"><ahref="#associatedtype.Error-2"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_from"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#812">source</a><ahref="#method.try_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-TryInto%3CU%3E-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#790-792">source</a><ahref="#impl-TryInto%3CU%3E-for-T"class="anchor">§</a><h3class="code-header">impl<T, U><aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T<divclass="where">where
U: <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Error-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><divclass='docblock'>The type returned in the event of a conversion error.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.try_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.78.0/src/core/convert/mod.rs.html#797">source</a><ahref="#method.try_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.78.0/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.78.0/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></h4></section></summary><divclass='docblock'>Performs the conversion.</div></details></div></details></div></section></div></main></body></html>