edlang/toml_edit/trait.TableLike.html
2024-08-01 07:04:26 +00:00

60 lines
28 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!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="This trait represents either a `Table`, or an `InlineTable`."><title>TableLike in toml_edit - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="toml_edit" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../toml_edit/index.html">toml_edit</a><span class="version">0.22.20</span></h2></div><h2 class="location"><a href="#">TableLike</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.clear">clear</a></li><li><a href="#tymethod.contains_key">contains_key</a></li><li><a href="#tymethod.entry">entry</a></li><li><a href="#tymethod.entry_format">entry_format</a></li><li><a href="#tymethod.fmt">fmt</a></li><li><a href="#tymethod.get">get</a></li><li><a href="#tymethod.get_key_value">get_key_value</a></li><li><a href="#tymethod.get_key_value_mut">get_key_value_mut</a></li><li><a href="#tymethod.get_mut">get_mut</a></li><li><a href="#tymethod.get_values">get_values</a></li><li><a href="#tymethod.insert">insert</a></li><li><a href="#tymethod.is_dotted">is_dotted</a></li><li><a href="#tymethod.iter">iter</a></li><li><a href="#tymethod.iter_mut">iter_mut</a></li><li><a href="#tymethod.key">key</a></li><li><a href="#tymethod.key_decor">key_decor</a></li><li><a href="#tymethod.key_decor_mut">key_decor_mut</a></li><li><a href="#tymethod.key_mut">key_mut</a></li><li><a href="#tymethod.remove">remove</a></li><li><a href="#tymethod.set_dotted">set_dotted</a></li><li><a href="#tymethod.sort_values">sort_values</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.len">len</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In crate toml_edit</a></h2></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Trait <a href="index.html">toml_edit</a>::<wbr><a class="trait" href="#">TableLike</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/toml_edit/table.rs.html#532-592">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><code>pub trait TableLike: Sealed {
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 23 methods</span></summary> // Required methods
fn <a href="#tymethod.iter" class="fn">iter</a>(&amp;self) -&gt; <a class="type" href="type.Iter.html" title="type toml_edit::Iter">Iter</a>&lt;'_&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.iter_mut" class="fn">iter_mut</a>(&amp;mut self) -&gt; <a class="type" href="type.IterMut.html" title="type toml_edit::IterMut">IterMut</a>&lt;'_&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.clear" class="fn">clear</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.entry" class="fn">entry</a>&lt;'a&gt;(&amp;'a mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a>&lt;'a&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.entry_format" class="fn">entry_format</a>&lt;'a&gt;(&amp;'a mut self, key: &amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>) -&gt; <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a>&lt;'a&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.get" class="fn">get</a>&lt;'s&gt;(&amp;'s self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'s <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.get_mut" class="fn">get_mut</a>&lt;'s&gt;(&amp;'s mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'s mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.get_key_value" class="fn">get_key_value</a>&lt;'a&gt;(&amp;'a self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'a <a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>, &amp;'a <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.get_key_value_mut" class="fn">get_key_value_mut</a>&lt;'a&gt;(
&amp;'a mut self,
key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a>&lt;'a&gt;, &amp;'a mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.contains_key" class="fn">contains_key</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.insert" class="fn">insert</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>, value: <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.remove" class="fn">remove</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.get_values" class="fn">get_values</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;&amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>&gt;, &amp;<a class="enum" href="enum.Value.html" title="enum toml_edit::Value">Value</a>)&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.fmt" class="fn">fmt</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.sort_values" class="fn">sort_values</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.set_dotted" class="fn">set_dotted</a>(&amp;mut self, yes: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.is_dotted" class="fn">is_dotted</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.key" class="fn">key</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.key_mut" class="fn">key_mut</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a>&lt;'_&gt;&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.key_decor_mut" class="fn">key_decor_mut</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.key_decor" class="fn">key_decor</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>&gt;;
// Provided methods
fn <a href="#method.len" class="fn">len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a> { ... }
<span class="item-spacer"></span> fn <a href="#method.is_empty" class="fn">is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a> { ... }
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>This trait represents either a <code>Table</code>, or an <code>InlineTable</code>.</p>
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.iter" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#534">source</a><h4 class="code-header">fn <a href="#tymethod.iter" class="fn">iter</a>(&amp;self) -&gt; <a class="type" href="type.Iter.html" title="type toml_edit::Iter">Iter</a>&lt;'_&gt;</h4></section></summary><div class="docblock"><p>Returns an iterator over key/value pairs.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.iter_mut" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#536">source</a><h4 class="code-header">fn <a href="#tymethod.iter_mut" class="fn">iter_mut</a>(&amp;mut self) -&gt; <a class="type" href="type.IterMut.html" title="type toml_edit::IterMut">IterMut</a>&lt;'_&gt;</h4></section></summary><div class="docblock"><p>Returns an mutable iterator over all key/value pairs, including empty.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.clear" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#546">source</a><h4 class="code-header">fn <a href="#tymethod.clear" class="fn">clear</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Clears the table, removing all key-value pairs. Keeps the allocated memory for reuse.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.entry" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#548">source</a><h4 class="code-header">fn <a href="#tymethod.entry" class="fn">entry</a>&lt;'a&gt;(&amp;'a mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a>&lt;'a&gt;</h4></section></summary><div class="docblock"><p>Gets the given keys corresponding entry in the Table for in-place manipulation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.entry_format" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#550">source</a><h4 class="code-header">fn <a href="#tymethod.entry_format" class="fn">entry_format</a>&lt;'a&gt;(&amp;'a mut self, key: &amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>) -&gt; <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a>&lt;'a&gt;</h4></section></summary><div class="docblock"><p>Gets the given keys corresponding entry in the Table for in-place manipulation.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#552">source</a><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a>&lt;'s&gt;(&amp;'s self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'s <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;</h4></section></summary><div class="docblock"><p>Returns an optional reference to an item given the key.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_mut" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#554">source</a><h4 class="code-header">fn <a href="#tymethod.get_mut" class="fn">get_mut</a>&lt;'s&gt;(&amp;'s mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'s mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;</h4></section></summary><div class="docblock"><p>Returns an optional mutable reference to an item given the key.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_key_value" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#556">source</a><h4 class="code-header">fn <a href="#tymethod.get_key_value" class="fn">get_key_value</a>&lt;'a&gt;(&amp;'a self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(&amp;'a <a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>, &amp;'a <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)&gt;</h4></section></summary><div class="docblock"><p>Return references to the key-value pair stored for key, if it is present, else None.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_key_value_mut" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#558">source</a><h4 class="code-header">fn <a href="#tymethod.get_key_value_mut" class="fn">get_key_value_mut</a>&lt;'a&gt;(
&amp;'a mut self,
key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>,
) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;(<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a>&lt;'a&gt;, &amp;'a mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)&gt;</h4></section></summary><div class="docblock"><p>Return mutable references to the key-value pair stored for key, if it is present, else None.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.contains_key" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#560">source</a><h4 class="code-header">fn <a href="#tymethod.contains_key" class="fn">contains_key</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns true if the table contains an item with the given key.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.insert" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#562">source</a><h4 class="code-header">fn <a href="#tymethod.insert" class="fn">insert</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>, value: <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;</h4></section></summary><div class="docblock"><p>Inserts a key-value pair into the map.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.remove" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#564">source</a><h4 class="code-header">fn <a href="#tymethod.remove" class="fn">remove</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>&gt;</h4></section></summary><div class="docblock"><p>Removes an item given the key.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.get_values" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#569">source</a><h4 class="code-header">fn <a href="#tymethod.get_values" class="fn">get_values</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;(<a class="struct" href="https://doc.rust-lang.org/1.80.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a>&lt;&amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>&gt;, &amp;<a class="enum" href="enum.Value.html" title="enum toml_edit::Value">Value</a>)&gt;</h4></section></summary><div class="docblock"><p>Get key/values for values that are visually children of this table</p>
<p>For example, this will return dotted keys</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.fmt" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#572">source</a><h4 class="code-header">fn <a href="#tymethod.fmt" class="fn">fmt</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Auto formats the table.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.sort_values" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#576">source</a><h4 class="code-header">fn <a href="#tymethod.sort_values" class="fn">sort_values</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Sorts Key/Value Pairs of the table.</p>
<p>Doesnt affect subtables or subarrays.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.set_dotted" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#578">source</a><h4 class="code-header">fn <a href="#tymethod.set_dotted" class="fn">set_dotted</a>(&amp;mut self, yes: <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Change this tables dotted status</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.is_dotted" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#580">source</a><h4 class="code-header">fn <a href="#tymethod.is_dotted" class="fn">is_dotted</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if this is a wrapper for dotted keys, rather than a standard table</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.key" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#583">source</a><h4 class="code-header">fn <a href="#tymethod.key" class="fn">key</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>&gt;</h4></section></summary><div class="docblock"><p>Returns an accessor to a keys formatting</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.key_mut" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#585">source</a><h4 class="code-header">fn <a href="#tymethod.key_mut" class="fn">key_mut</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a>&lt;'_&gt;&gt;</h4></section></summary><div class="docblock"><p>Returns an accessor to a keys formatting</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.key_decor_mut" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#588">source</a><h4 class="code-header">fn <a href="#tymethod.key_decor_mut" class="fn">key_decor_mut</a>(&amp;mut self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.21.1: Replaced with <code>key_mut</code></span></div></span></summary><div class="docblock"><p>Returns the decor associated with a given key of the table.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.key_decor" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#591">source</a><h4 class="code-header">fn <a href="#tymethod.key_decor" class="fn">key_decor</a>(&amp;self, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.80.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>&gt;</h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span><span>Deprecated since 0.21.1: Replaced with <code>key_mut</code></span></div></span></summary><div class="docblock"><p>Returns the decor associated with a given key of the table.</p>
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.len" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#538-540">source</a><h4 class="code-header">fn <a href="#method.len" class="fn">len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Returns the number of nonempty items.</p>
</div></details><details class="toggle method-toggle" open><summary><section id="method.is_empty" class="method"><a class="src rightside" href="../src/toml_edit/table.rs.html#542-544">source</a><h4 class="code-header">fn <a href="#method.is_empty" class="fn">is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.80.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Returns true if the table is empty.</p>
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-TableLike-for-InlineTable" class="impl"><a class="src rightside" href="../src/toml_edit/inline_table.rs.html#507-597">source</a><a href="#impl-TableLike-for-InlineTable" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TableLike.html" title="trait toml_edit::TableLike">TableLike</a> for <a class="struct" href="struct.InlineTable.html" title="struct toml_edit::InlineTable">InlineTable</a></h3></section><section id="impl-TableLike-for-Table" class="impl"><a class="src rightside" href="../src/toml_edit/table.rs.html#594-662">source</a><a href="#impl-TableLike-for-Table" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.TableLike.html" title="trait toml_edit::TableLike">TableLike</a> for <a class="struct" href="struct.Table.html" title="struct toml_edit::Table">Table</a></h3></section></div><script src="../trait.impl/toml_edit/table/trait.TableLike.js" async></script></section></div></main></body></html>