mirror of
https://github.com/edg-l/edlang.git
synced 2024-11-10 01:58:23 +00:00
61 lines
29 KiB
HTML
61 lines
29 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="This trait represents either a `Table`, or an `InlineTable`."><title>TableLike in toml_edit - Rust</title><script> if (window.location.protocol !== "file:") document.write(`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2">`)</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-e935ef01ae1c1829.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.78.0 (9b00956e5 2024-04-29)" data-channel="1.78.0" data-search-js="search-42d8da7a6b9792c2.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-4c98445ec4002617.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-12cf3b4f4f9dc36d.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-04d5337699b92874.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc 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.13</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"><nav class="sub"><form class="search-form"><span></span><div id="sidebar-button" tabindex="-1"><a href="../toml_edit/all.html" title="show sidebar"></a></div><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press ‘S’ to search, ‘?’ for more options…" type="search"><div id="help-button" tabindex="-1"><a href="../help.html" title="help">?</a></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="main-heading"><h1>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"><img src="../static.files/clipboard-7571035ce49a181d.svg" width="19" height="18" alt="Copy item path"></button></h1><span class="out-of-band"><a class="src" href="../src/toml_edit/table.rs.html#531-591">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>−</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>(&self) -> <a class="type" href="type.Iter.html" title="type toml_edit::Iter">Iter</a><'_>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.iter_mut" class="fn">iter_mut</a>(&mut self) -> <a class="type" href="type.IterMut.html" title="type toml_edit::IterMut">IterMut</a><'_>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.clear" class="fn">clear</a>(&mut self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.entry" class="fn">entry</a><'a>(&'a mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a><'a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.entry_format" class="fn">entry_format</a><'a>(&'a mut self, key: &<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>) -> <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a><'a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get" class="fn">get</a><'s>(&'s self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'s <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_mut" class="fn">get_mut</a><'s>(&'s mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'s mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_key_value" class="fn">get_key_value</a><'a>(&'a self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&'a <a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>, &'a <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_key_value_mut" class="fn">get_key_value_mut</a><'a>(
|
||
&'a mut self,
|
||
key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a><'a>, &'a mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.contains_key" class="fn">contains_key</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.bool.html">bool</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.insert" class="fn">insert</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>, value: <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.remove" class="fn">remove</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.get_values" class="fn">get_values</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.78.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.78.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><&<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>>, &<a class="enum" href="enum.Value.html" title="enum toml_edit::Value">Value</a>)>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.fmt" class="fn">fmt</a>(&mut self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.sort_values" class="fn">sort_values</a>(&mut self);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.set_dotted" class="fn">set_dotted</a>(&mut self, yes: <a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.bool.html">bool</a>);
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.is_dotted" class="fn">is_dotted</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.bool.html">bool</a>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.key" class="fn">key</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.key_mut" class="fn">key_mut</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a><'_>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.key_decor_mut" class="fn">key_decor_mut</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>>;
|
||
<span class="item-spacer"></span> fn <a href="#tymethod.key_decor" class="fn">key_decor</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>>;
|
||
|
||
// Provided methods
|
||
fn <a href="#method.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.usize.html">usize</a> { ... }
|
||
<span class="item-spacer"></span> fn <a href="#method.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.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#533">source</a><h4 class="code-header">fn <a href="#tymethod.iter" class="fn">iter</a>(&self) -> <a class="type" href="type.Iter.html" title="type toml_edit::Iter">Iter</a><'_></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#535">source</a><h4 class="code-header">fn <a href="#tymethod.iter_mut" class="fn">iter_mut</a>(&mut self) -> <a class="type" href="type.IterMut.html" title="type toml_edit::IterMut">IterMut</a><'_></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#545">source</a><h4 class="code-header">fn <a href="#tymethod.clear" class="fn">clear</a>(&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#547">source</a><h4 class="code-header">fn <a href="#tymethod.entry" class="fn">entry</a><'a>(&'a mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a><'a></h4></section></summary><div class="docblock"><p>Gets the given key’s 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#549">source</a><h4 class="code-header">fn <a href="#tymethod.entry_format" class="fn">entry_format</a><'a>(&'a mut self, key: &<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>) -> <a class="enum" href="enum.Entry.html" title="enum toml_edit::Entry">Entry</a><'a></h4></section></summary><div class="docblock"><p>Gets the given key’s 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#551">source</a><h4 class="code-header">fn <a href="#tymethod.get" class="fn">get</a><'s>(&'s self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'s <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>></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#553">source</a><h4 class="code-header">fn <a href="#tymethod.get_mut" class="fn">get_mut</a><'s>(&'s mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'s mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>></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#555">source</a><h4 class="code-header">fn <a href="#tymethod.get_key_value" class="fn">get_key_value</a><'a>(&'a self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(&'a <a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>, &'a <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)></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#557">source</a><h4 class="code-header">fn <a href="#tymethod.get_key_value_mut" class="fn">get_key_value_mut</a><'a>(
|
||
&'a mut self,
|
||
key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>
|
||
) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a><'a>, &'a mut <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>)></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#559">source</a><h4 class="code-header">fn <a href="#tymethod.contains_key" class="fn">contains_key</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.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#561">source</a><h4 class="code-header">fn <a href="#tymethod.insert" class="fn">insert</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>, value: <a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>></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#563">source</a><h4 class="code-header">fn <a href="#tymethod.remove" class="fn">remove</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="enum.Item.html" title="enum toml_edit::Item">Item</a>></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#568">source</a><h4 class="code-header">fn <a href="#tymethod.get_values" class="fn">get_values</a>(&self) -> <a class="struct" href="https://doc.rust-lang.org/1.78.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><(<a class="struct" href="https://doc.rust-lang.org/1.78.0/alloc/vec/struct.Vec.html" title="struct alloc::vec::Vec">Vec</a><&<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>>, &<a class="enum" href="enum.Value.html" title="enum toml_edit::Value">Value</a>)></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#571">source</a><h4 class="code-header">fn <a href="#tymethod.fmt" class="fn">fmt</a>(&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#575">source</a><h4 class="code-header">fn <a href="#tymethod.sort_values" class="fn">sort_values</a>(&mut self)</h4></section></summary><div class="docblock"><p>Sorts Key/Value Pairs of the table.</p>
|
||
<p>Doesn’t 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#577">source</a><h4 class="code-header">fn <a href="#tymethod.set_dotted" class="fn">set_dotted</a>(&mut self, yes: <a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.bool.html">bool</a>)</h4></section></summary><div class="docblock"><p>Change this table’s 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#579">source</a><h4 class="code-header">fn <a href="#tymethod.is_dotted" class="fn">is_dotted</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.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#582">source</a><h4 class="code-header">fn <a href="#tymethod.key" class="fn">key</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.Key.html" title="struct toml_edit::Key">Key</a>></h4></section></summary><div class="docblock"><p>Returns an accessor to a key’s 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#584">source</a><h4 class="code-header">fn <a href="#tymethod.key_mut" class="fn">key_mut</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.KeyMut.html" title="struct toml_edit::KeyMut">KeyMut</a><'_>></h4></section></summary><div class="docblock"><p>Returns an accessor to a key’s 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#587">source</a><h4 class="code-header">fn <a href="#tymethod.key_decor_mut" class="fn">key_decor_mut</a>(&mut self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>></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#590">source</a><h4 class="code-header">fn <a href="#tymethod.key_decor" class="fn">key_decor</a>(&self, key: &<a class="primitive" href="https://doc.rust-lang.org/1.78.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.78.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.Decor.html" title="struct toml_edit::Decor">Decor</a>></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#537-539">source</a><h4 class="code-header">fn <a href="#method.len" class="fn">len</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.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#541-543">source</a><h4 class="code-header">fn <a href="#method.is_empty" class="fn">is_empty</a>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.78.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#593-661">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> |