<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><ahref="index.html">map</a>::<wbr><aclass="struct"href="#">Map</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/map.rs.html#32-34">source</a> · <buttonid="toggle-all-docs"title="collapse all docs">[<span>−</span>]</button></span></div><preclass="rust item-decl"><code>pub struct Map<K, V> { <spanclass="comment">/* private fields */</span> }</code></pre><detailsclass="toggle top-doc"open><summaryclass="hideme"><span>Expand description</span></summary><divclass="docblock"><p>Represents a TOML key/value type.</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-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#41-215">source</a><ahref="#impl-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.new"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#44-48">source</a><h4class="code-header">pub fn <ahref="#method.new"class="fn">new</a>() -> Self</h4></section></summary><divclass="docblock"><p>Makes a new empty Map.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.with_capacity"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#53-59">source</a><h4class="code-header">pub fn <ahref="#method.with_capacity"class="fn">with_capacity</a>(capacity: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.usize.html">usize</a>) -> Self</h4></section></summary><divclass="docblock"><p>Makes a new empty Map with the given initial capacity.</p>
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass="docblock"><p>Returns a reference to the value corresponding to the key.</p>
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass="docblock"><p>Returns true if the map contains a value for the specified key.</p>
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass="docblock"><p>Returns a mutable reference to the value corresponding to the key.</p>
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h4></section></summary><divclass="docblock"><p>Removes a key from the map, returning the value at the key if the key
F: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(&<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.str.html">str</a>, &mut <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.bool.html">bool</a>,</div></h4></section></summary><divclass="docblock"><p>Retains only the elements specified by the <code>keep</code> predicate.</p>
S: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>>,</div></h4></section></summary><divclass="docblock"><p>Gets the given key’s corresponding entry in the map for in-place
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.len"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#174-176">source</a><h4class="code-header">pub fn <ahref="#method.len"class="fn">len</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.usize.html">usize</a></h4></section></summary><divclass="docblock"><p>Returns the number of elements in the map.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.is_empty"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#180-182">source</a><h4class="code-header">pub fn <ahref="#method.is_empty"class="fn">is_empty</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass="docblock"><p>Returns true if the map contains no elements.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#186-190">source</a><h4class="code-header">pub fn <ahref="#method.iter"class="fn">iter</a>(&self) -><aclass="struct"href="struct.Iter.html"title="struct toml::map::Iter">Iter</a><'_><ahref="#"class="tooltip"data-notable-ty="Iter<'_>">ⓘ</a></h4></section></summary><divclass="docblock"><p>Gets an iterator over the entries of the map.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.iter_mut"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#194-198">source</a><h4class="code-header">pub fn <ahref="#method.iter_mut"class="fn">iter_mut</a>(&mut self) -><aclass="struct"href="struct.IterMut.html"title="struct toml::map::IterMut">IterMut</a><'_><ahref="#"class="tooltip"data-notable-ty="IterMut<'_>">ⓘ</a></h4></section></summary><divclass="docblock"><p>Gets a mutable iterator over the entries of the map.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.keys"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#202-206">source</a><h4class="code-header">pub fn <ahref="#method.keys"class="fn">keys</a>(&self) -><aclass="struct"href="struct.Keys.html"title="struct toml::map::Keys">Keys</a><'_><ahref="#"class="tooltip"data-notable-ty="Keys<'_>">ⓘ</a></h4></section></summary><divclass="docblock"><p>Gets an iterator over the keys of the map.</p>
</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.values"class="method"><aclass="src rightside"href="../../src/toml/map.rs.html#210-214">source</a><h4class="code-header">pub fn <ahref="#method.values"class="fn">values</a>(&self) -><aclass="struct"href="struct.Values.html"title="struct toml::map::Values">Values</a><'_><ahref="#"class="tooltip"data-notable-ty="Values<'_>">ⓘ</a></h4></section></summary><divclass="docblock"><p>Gets an iterator over the values of the map.</p>
T: <aclass="trait"href="../../serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a>,</div></h4></section></summary><divclass="docblock"><p>Convert a <code>T</code> into <code>toml::Table</code>.</p>
<p>This conversion can fail if <code>T</code>’s implementation of <code>Serialize</code> decides to
fail, or if <code>T</code> contains a map with non-string keys.</p>
T: <aclass="trait"href="../../serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de>,</div></h4></section></summary><divclass="docblock"><p>Interpret a <code>toml::Table</code> as an instance of type <code>T</code>.</p>
<p>This conversion can fail if the structure of the <code>Table</code> does not match the structure
expected by <code>T</code>, for example if <code>T</code> is a bool which can’t be mapped to a <code>Table</code>. It can
also fail if the structure is correct but <code>T</code>’s implementation of <code>Deserialize</code> decides
that something is wrong with the data, for example required struct fields are missing from
the TOML map or some number is too big to fit in the expected primitive type.</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-Clone-for-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#226-233">source</a><ahref="#impl-Clone-for-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#228-232">source</a><ahref="#method.clone"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html#tymethod.clone"class="fn">clone</a>(&self) -> Self</h4></section></summary><divclass='docblock'>Returns a copy of the value. <ahref="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html#tymethod.clone">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_from"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.77.2/src/core/clone.rs.html#169">source</a></span><ahref="#method.clone_from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html#method.clone_from"class="fn">clone_from</a>(&mut self, source: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.reference.html">&Self</a>)</h4></section></summary><divclass='docblock'>Performs copy-assignment from <code>source</code>. <ahref="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html#method.clone_from">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Debug-for-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#268-273">source</a><ahref="#impl-Debug-for-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/fmt/trait.Debug.html"title="trait core::fmt::Debug">Debug</a> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.fmt"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#270-272">source</a><ahref="#method.fmt"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/fmt/trait.Debug.html#tymethod.fmt"class="fn">fmt</a>(&self, formatter: &mut <aclass="struct"href="https://doc.rust-lang.org/1.77.2/core/fmt/struct.Formatter.html"title="struct core::fmt::Formatter">Formatter</a><'_>) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.unit.html">()</a>, <aclass="struct"href="https://doc.rust-lang.org/1.77.2/core/fmt/struct.Error.html"title="struct core::fmt::Error">Error</a>><
D: <aclass="trait"href="../../serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>,</div></h4></section></summary><divclass='docblock'>Deserialize this value from the given Serde deserializer. <ahref="../../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Extend%3C(String,+Value)%3E-for-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#344-351">source</a><ahref="#impl-Extend%3C(String,+Value)%3E-for-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html"title="trait core::iter::traits::collect::Extend">Extend</a><(<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>)> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.extend"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#345-350">source</a><ahref="#method.extend"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html#tymethod.extend"class="fn">extend</a><T>(&mut self, iter: T)<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = (<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>)>,</div></h4></section></summary><divclass='docblock'>Extends a collection with the contents of an iterator. <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html#tymethod.extend">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.extend_one"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/core/iter/traits/collect.rs.html#376">source</a><ahref="#method.extend_one"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html#method.extend_one"class="fn">extend_one</a>(&mut self, item: A)</h4></section></summary><spanclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><divclass='docblock'>Extends a collection with exactly one element.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.extend_reserve"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/core/iter/traits/collect.rs.html#384">source</a><ahref="#method.extend_reserve"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html#method.extend_reserve"class="fn">extend_reserve</a>(&mut self, additional: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.usize.html">usize</a>)</h4></section></summary><spanclass="item-info"><divclass="stab unstable"><spanclass="emoji">🔬</span><span>This is a nightly-only experimental API. (<code>extend_one</code>)</span></div></span><divclass='docblock'>Reserves capacity in a collection for the given number of additional elements. <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.Extend.html#method.extend_reserve">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-From%3CMap%3CString,+Value%3E%3E-for-Value"class="impl"><aclass="src rightside"href="../../src/toml/value.rs.html#298">source</a><ahref="#impl-From%3CMap%3CString,+Value%3E%3E-for-Value"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.From.html"title="trait core::convert::From">From</a><<aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>>> for <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.from"class="method trait-impl"><aclass="src rightside"href="../../src/toml/value.rs.html#298">source</a><ahref="#method.from"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.From.html#tymethod.from"class="fn">from</a>(val: <aclass="type"href="../type.Table.html"title="type toml::Table">Table</a>) -><aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a></h4></section></summary><divclass='docblock'>Converts to this type from the input type.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-FromIterator%3C(String,+Value)%3E-for-Map%3CString,+Value%3E"class="imp
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = (<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>)>,</div></h4></section></summary><divclass='docblock'>Creates a value from an iterator. <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Index%3C%26Q%3E-for-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#244-254">source</a><ahref="#impl-Index%3C%26Q%3E-for-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl<'a, Q><aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.reference.html">&'a Q</a>> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>><divclass="where">where
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="docblock"><p>Access an element of this map. Panics if the given key is not present in the
Q: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>,</div></h3></section></summary><divclass="docblock"><p>Mutably access an element of this map. Panics if the given key is not
</div><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.index_mut"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#263-265">source</a><ahref="#method.index_mut"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/ops/index/trait.IndexMut.html#tymethod.index_mut"class="fn">index_mut</a>(&mut self, index: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.reference.html">&Q</a>) ->&mut <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a></h4></section></summary><divclass='docblock'>Performs the mutable indexing (<code>container[index]</code>) operation. <ahref="https://doc.rust-lang.org/1.77.2/core/ops/index/trait.IndexMut.html#tymethod.index_mut">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-IntoIterator-for-%26Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#510-519">source</a><ahref="#impl-IntoIterator-for-%26Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl<'a><aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &'a <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Item-2"class="associatedtype trait-impl"><ahref="#associatedtype.Item-2"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item"class="associatedtype">Item</a> = (&'a <aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, &'a <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>)</h4></section></summary><divclass='docblock'>The type of the elements being iterated over.</div></details><detailsclass="toggle"open><summary><sectionid="associatedtype.IntoIter-2"class="associatedtype trait-impl"><ahref="#associatedtype.IntoIter-2"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"class="associatedtype">IntoIter</a> = <aclass="struct"href="struct.Iter.html"title="struct toml::map::Iter">Iter</a><'a></h4></section></summary><divclass='docblock'>Which kind of iterator are we turning this into?</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.into_iter-2"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#514-518">source</a><ahref="#method.into_iter-2"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter"class="fn">into_iter</a>(self) -> Self::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><divclass='docblock'>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/1.77.2/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-IntoIterator-for-%26mut+Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#535-544">source</a><ahref="#impl
by <code>==</code>.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.ne"class="method trait-impl"><spanclass="rightside"><spanclass="since"title="Stable since Rust version 1.0.0">1.0.0</span> · <aclass="src"href="https://doc.rust-lang.org/1.77.2/src/core/cmp.rs.html#242">source</a></span><ahref="#method.ne"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/cmp/trait.PartialEq.html#method.ne"class="fn">ne</a>(&self, other: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.reference.html">&Rhs</a>) -><aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.bool.html">bool</a></h4></section></summary><divclass='docblock'>This method tests for <code>!=</code>. The default implementation is almost always
sufficient, and should not be overridden without very good reason.</div></details></div></details><detailsclass="toggle implementors-toggle"open><summary><sectionid="impl-Serialize-for-Map%3CString,+Value%3E"class="impl"><aclass="src rightside"href="../../src/toml/map.rs.html#275-289">source</a><ahref="#impl-Serialize-for-Map%3CString,+Value%3E"class="anchor">§</a><h3class="code-header">impl <aclass="trait"href="../../serde/ser/trait.Serialize.html"title="trait serde::ser::Serialize">Serialize</a> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><<aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a>, <aclass="enum"href="../enum.Value.html"title="enum toml::Value">Value</a>></h3></section></summary><divclass="impl-items"><detailsclass="toggle method-toggle"open><summary><sectionid="method.serialize"class="method trait-impl"><aclass="src rightside"href="../../src/toml/map.rs.html#277-288">source</a><ahref="#method.serialize"class="anchor">§</a><h4class="code-header">fn <ahref="../../serde/ser/trait.Serialize.html#tymethod.serialize"class="fn">serialize</a><S>(&self, serializer: S) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><S::<aclass="associatedtype"href="../../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, S::<aclass="associatedtype"href="../../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><divclass="where">where
S: <aclass="trait"href="../../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>,</div></h4></section></summary><divclass='docblock'>Serialize this value into the given Serde serializer. <ahref="../../serde/ser/trait.Serialize.html#tymethod.serialize">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-RefUnwindSafe-for-Map%3CK,+V%3E"class="impl"><ahref="#impl-RefUnwindSafe-for-Map%3CK,+V%3E"class="anchor">§</a><h3class="code-header">impl<K, V><aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/panic/unwind_safe/trait.RefUnwindSafe.html"title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <aclass="struct"href="struct.Map.html"title="struct toml::map::Map">Map</a><K, V><divclass="where">where
<code><ahref="https://doc.rust-lang.org/1.77.2/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-ToOwned-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/alloc/borrow.rs.html#83-85">source</a><ahref="#impl-ToOwned-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>,</div></h3></section></summary><divclass="impl-items"><detailsclass="toggle"open><summary><sectionid="associatedtype.Owned"class="associatedtype trait-impl"><ahref="#associatedtype.Owned"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html#associatedtype.Owned"class="associatedtype">Owned</a> = T</h4></section></summary><divclass='docblock'>The resulting type after obtaining ownership.</div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.to_owned"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/alloc/borrow.rs.html#88">source</a><ahref="#method.to_owned"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html#tymethod.to_owned"class="fn">to_owned</a>(&self) -> T</h4></section></summary><divclass='docblock'>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></div></details><detailsclass="toggle method-toggle"open><summary><sectionid="method.clone_into"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/alloc/borrow.rs.html#92">source</a><ahref="#method.clone_into"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html#method.clone_into"class="fn">clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/1.77.2/std/primitive.reference.html">&mut T</a>)</h4></section></summary><divclass='docblock'>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/1.77.2/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></div></details></div></details><detailsclass="toggle implementors-toggle"><summary><sectionid="impl-ToString-for-T"class="impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/alloc/string.rs.html#2600">source</a><ahref="#impl-ToString-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="https://doc.rust-lang.org/1.77.2/alloc/string/trait.ToString.html"title="trait alloc::string::ToString">ToString</a> for T<divclass="where">where
T: <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/fmt/trait.Display.html"title="trait core::fmt::Display">Display</a> + ?<aclass="trait"href="https://doc.rust-lang.org/1.77.2/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.to_string"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/alloc/string.rs.html#2606">source</a><ahref="#method.to_string"class="anchor">§</a><h4class="code-header">default fn <ahref="https://doc.rust-lang.org/1.77.2/alloc/string/trait.ToString.html#tymethod.to_string"class="fn">to_string</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/1.77.2/alloc/string/struct.String.html"title="struct alloc::string::String">String</a></h4></section></summary><divclass='docblock'>Converts the given value to a <code>String</code>. <ahref="https://doc.rust-lang.org/1.77.2/alloc/string/trait.ToString.html#tymethod.to_string">Read more</a></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.77.2/src/core/convert/mod.rs.html#804-806">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.77.2/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.77.2/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-1"class="associatedtype trait-impl"><ahref="#associatedtype.Error-1"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html#associatedtype.Error"class="associatedtype">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/1.77.2/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-1"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/core/convert/mod.rs.html#811">source</a><ahref="#method.try_from-1"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html#tymethod.try_from"class="fn">try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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.77.2/src/core/convert/mod.rs.html#789-791">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.77.2/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.77.2/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"class="associatedtype trait-impl"><ahref="#associatedtype.Error"class="anchor">§</a><h4class="code-header">type <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryInto.html#associatedtype.Error"class="associatedtype">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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-1"class="method trait-impl"><aclass="src rightside"href="https://doc.rust-lang.org/1.77.2/src/core/convert/mod.rs.html#796">source</a><ahref="#method.try_into-1"class="anchor">§</a><h4class="code-header">fn <ahref="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryInto.html#tymethod.try_into"class="fn">try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/1.77.2/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/1.77.2/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="associatedtype"href="https://doc.rust-lang.org/1.77.2/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><sectionid="impl-DeserializeOwned-for-T"class="impl"><aclass="src rightside"href="../../src/serde/de/mod.rs.html#608">source</a><ahref="#impl-DeserializeOwned-for-T"class="anchor">§</a><h3class="code-header">impl<T><aclass="trait"href="../../serde/de/trait.DeserializeOwned.html"title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T<divclass="where">where