ssw/doc/ini/struct.Ini.html
2023-01-09 19:23:20 +01:00

82 lines
86 KiB
HTML
Raw Permalink 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="Ini struct"><meta name="keywords" content="rust, rustlang, rust-lang, Ini"><title>Ini in ini - Rust</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Regular.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../FiraSans-Medium.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Regular.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceSerif4-Bold.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../SourceCodePro-Semibold.ttf.woff2"><link rel="stylesheet" type="text/css" href="../normalize.css"><link rel="stylesheet" type="text/css" href="../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" type="text/css" href="../ayu.css" disabled><link rel="stylesheet" type="text/css" href="../dark.css" disabled><link rel="stylesheet" type="text/css" href="../light.css" id="themeStyle"><script id="default-settings" ></script><script src="../storage.js"></script><script defer src="sidebar-items.js"></script><script defer src="../main.js"></script><noscript><link rel="stylesheet" href="../noscript.css"></noscript><link rel="alternate icon" type="image/png" href="../favicon-16x16.png"><link rel="alternate icon" type="image/png" href="../favicon-32x32.png"><link rel="icon" type="image/svg+xml" href="../favicon.svg"></head><body class="rustdoc struct"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../ini/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../ini/index.html"><div class="logo-container"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Ini</a></h2><div class="sidebar-elems"><section><div class="block"><h3 class="sidebar-title"><a href="#implementations">Methods</a></h3><ul><li><a href="#method.clear">clear</a></li><li><a href="#method.delete">delete</a></li><li><a href="#method.delete_from">delete_from</a></li><li><a href="#method.entry">entry</a></li><li><a href="#method.general_section">general_section</a></li><li><a href="#method.general_section_mut">general_section_mut</a></li><li><a href="#method.get_from">get_from</a></li><li><a href="#method.get_from_mut">get_from_mut</a></li><li><a href="#method.get_from_or">get_from_or</a></li><li><a href="#method.is_empty">is_empty</a></li><li><a href="#method.iter">iter</a></li><li><a href="#method.iter_mut">iter_mut</a></li><li><a href="#method.len">len</a></li><li><a href="#method.load_from_file">load_from_file</a></li><li><a href="#method.load_from_file_noescape">load_from_file_noescape</a></li><li><a href="#method.load_from_file_opt">load_from_file_opt</a></li><li><a href="#method.load_from_str">load_from_str</a></li><li><a href="#method.load_from_str_noescape">load_from_str_noescape</a></li><li><a href="#method.load_from_str_opt">load_from_str_opt</a></li><li><a href="#method.mut_iter">mut_iter</a></li><li><a href="#method.new">new</a></li><li><a href="#method.read_from">read_from</a></li><li><a href="#method.read_from_noescape">read_from_noescape</a></li><li><a href="#method.read_from_opt">read_from_opt</a></li><li><a href="#method.section">section</a></li><li><a href="#method.section_all">section_all</a></li><li><a href="#method.section_all_mut">section_all_mut</a></li><li><a href="#method.section_mut">section_mut</a></li><li><a href="#method.sections">sections</a></li><li><a href="#method.set_to">set_to</a></li><li><a href="#method.with_general_section">with_general_section</a></li><li><a href="#method.with_section">with_section</a></li><li><a href="#method.write_to">write_to</a></li><li><a href="#method.write_to_file">write_to_file</a></li><li><a href="#method.write_to_file_opt">write_to_file_opt</a></li><li><a href="#method.write_to_file_policy">write_to_file_policy</a></li><li><a href="#method.write_to_opt">write_to_opt</a></li><li><a href="#method.write_to_policy">write_to_policy</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#trait-implementations">Trait Implementations</a></h3><ul><li><a href="#impl-Clone-for-Ini">Clone</a></li><li><a href="#impl-Default-for-Ini">Default</a></li><li><a href="#impl-Index%3C%26%27q%20str%3E-for-Ini">Index&lt;&amp;&#39;q str&gt;</a></li><li><a href="#impl-Index%3COption%3CS%3E%3E-for-Ini">Index&lt;Option&lt;S&gt;&gt;</a></li><li><a href="#impl-IndexMut%3C%26%27q%20str%3E-for-Ini">IndexMut&lt;&amp;&#39;q str&gt;</a></li><li><a href="#impl-IndexMut%3COption%3CS%3E%3E-for-Ini">IndexMut&lt;Option&lt;S&gt;&gt;</a></li><li><a href="#impl-IntoIterator-for-%26%27a%20Ini">IntoIterator</a></li><li><a href="#impl-IntoIterator-for-%26%27a%20mut%20Ini">IntoIterator</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#synthetic-implementations">Auto Trait Implementations</a></h3><ul><li><a href="#impl-RefUnwindSafe-for-Ini">RefUnwindSafe</a></li><li><a href="#impl-Send-for-Ini">Send</a></li><li><a href="#impl-Sync-for-Ini">Sync</a></li><li><a href="#impl-Unpin-for-Ini">Unpin</a></li><li><a href="#impl-UnwindSafe-for-Ini">UnwindSafe</a></li></ul></div><div class="block"><h3 class="sidebar-title"><a href="#blanket-implementations">Blanket Implementations</a></h3><ul><li><a href="#impl-Any-for-Ini">Any</a></li><li><a href="#impl-Borrow%3CT%3E-for-Ini">Borrow&lt;T&gt;</a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Ini">BorrowMut&lt;T&gt;</a></li><li><a href="#impl-From%3CT%3E-for-Ini">From&lt;T&gt;</a></li><li><a href="#impl-Into%3CU%3E-for-Ini">Into&lt;U&gt;</a></li><li><a href="#impl-ToOwned-for-Ini">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Ini">TryFrom&lt;U&gt;</a></li><li><a href="#impl-TryInto%3CU%3E-for-Ini">TryInto&lt;U&gt;</a></li></ul></div></section><h2 class="location"><a href="index.html">In ini</a></h2></div></nav><main><div class="width-limiter"><div class="sub-container"><a class="sub-logo-container" href="../ini/index.html"><img class="rust-logo" src="../rust-logo.svg" alt="logo"></a><nav class="sub"><form class="search-form"><div class="search-container"><span></span><input class="search-input" name="search" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><button type="button">?</button></div><div id="settings-menu" tabindex="-1"><a href="../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../wheel.svg"></a></div></div></form></nav></div><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn"><span class="in-band">Struct <a href="index.html">ini</a>::<wbr><a class="struct" href="#">Ini</a><button id="copy-path" onclick="copy_path(this)" title="Copy item path to clipboard"><img src="../clipboard.svg" width="19" height="18" alt="Copy item path"></button></span></h1><span class="out-of-band"><a class="srclink" href="../src/ini/lib.rs.html#505-507">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="docblock item-decl"><pre class="rust struct"><code>pub struct Ini { /* private fields */ }</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Ini struct</p>
</div></details><h2 id="implementations" class="small-section-header">Implementations<a href="#implementations" class="anchor"></a></h2><div id="implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#509-661">source</a></span><a href="#impl-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.new" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#511-513">source</a></span><h4 class="code-header">pub fn <a href="#method.new" class="fnname">new</a>() -&gt; <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h4></section></summary><div class="docblock"><p>Create an instance</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_section" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#516-520">source</a></span><h4 class="code-header">pub fn <a href="#method.with_section" class="fnname">with_section</a>&lt;S&gt;(&amp;mut self, section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; <a class="struct" href="struct.SectionSetter.html" title="struct ini::SectionSetter">SectionSetter</a>&lt;'_&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Set with a specified section, <code>None</code> is for the general section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.with_general_section" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#523-525">source</a></span><h4 class="code-header">pub fn <a href="#method.with_general_section" class="fnname">with_general_section</a>(&amp;mut self) -&gt; <a class="struct" href="struct.SectionSetter.html" title="struct ini::SectionSetter">SectionSetter</a>&lt;'_&gt;</h4></section></summary><div class="docblock"><p>Set with general section, a simple wrapper of <code>with_section(None::&lt;String&gt;)</code></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.general_section" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#528-531">source</a></span><h4 class="code-header">pub fn <a href="#method.general_section" class="fnname">general_section</a>(&amp;self) -&gt; &amp;<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class="docblock"><p>Get the immmutable general section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.general_section_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#534-537">source</a></span><h4 class="code-header">pub fn <a href="#method.general_section_mut" class="fnname">general_section_mut</a>(&amp;mut self) -&gt; &amp;mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class="docblock"><p>Get the mutable general section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.section" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#540-544">source</a></span><h4 class="code-header">pub fn <a href="#method.section" class="fnname">section</a>&lt;S&gt;(&amp;self, name: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get a immutable section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.section_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#547-551">source</a></span><h4 class="code-header">pub fn <a href="#method.section_mut" class="fnname">section_mut</a>&lt;S&gt;(&amp;mut self, name: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get a mutable section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.section_all" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#554-558">source</a></span><h4 class="code-header">pub fn <a href="#method.section_all" class="fnname">section_all</a>&lt;S&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;name: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;<br>) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>&lt;Item = &amp;<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get all sections immutable with the same key</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.section_all_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#561-565">source</a></span><h4 class="code-header">pub fn <a href="#method.section_all_mut" class="fnname">section_all_mut</a>&lt;S&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;name: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;<br>) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>&lt;Item = &amp;mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get all sections mutable with the same key</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.entry" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#569-571">source</a></span><h4 class="code-header">pub fn <a href="#method.entry" class="fnname">entry</a>(&amp;mut self, name: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;) -&gt; <a class="enum" href="enum.SectionEntry.html" title="enum ini::SectionEntry">SectionEntry</a>&lt;'_&gt;</h4></section></summary><div class="docblock"><p>Get the entry</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clear" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#580-582">source</a></span><h4 class="code-header">pub fn <a href="#method.clear" class="fnname">clear</a>(&amp;mut self)</h4></section></summary><div class="docblock"><p>Clear all entries</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.sections" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#585-587">source</a></span><h4 class="code-header">pub fn <a href="#method.sections" class="fnname">sections</a>(&amp;self) -&gt; impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/double_ended/trait.DoubleEndedIterator.html" title="trait core::iter::traits::double_ended::DoubleEndedIterator">DoubleEndedIterator</a>&lt;Item = <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;&gt;</h4></section></summary><div class="docblock"><p>Iterate with sections</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.set_to" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#590-594">source</a></span><h4 class="code-header">pub fn <a href="#method.set_to" class="fnname">set_to</a>&lt;S&gt;(&amp;mut self, section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;, key: <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>, value: <a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>) <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Set key-value to a section</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_from" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#606-610">source</a></span><h4 class="code-header">pub fn <a href="#method.get_from" class="fnname">get_from</a>&lt;'a, S&gt;(&amp;'a self, section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get the first value from the sections with key</p>
<p>Example:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">ini::Ini</span>;
<span class="kw">let</span> <span class="ident">input</span> <span class="op">=</span> <span class="string">&quot;[sec]\nabc = def\n&quot;</span>;
<span class="kw">let</span> <span class="ident">ini</span> <span class="op">=</span> <span class="ident">Ini::load_from_str</span>(<span class="ident">input</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">ini</span>.<span class="ident">get_from</span>(<span class="prelude-val">Some</span>(<span class="string">&quot;sec&quot;</span>), <span class="string">&quot;abc&quot;</span>), <span class="prelude-val">Some</span>(<span class="string">&quot;def&quot;</span>));</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_from_or" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#622-626">source</a></span><h4 class="code-header">pub fn <a href="#method.get_from_or" class="fnname">get_from_or</a>&lt;'a, S&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a self,<br>&nbsp;&nbsp;&nbsp;&nbsp;section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;default: &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -&gt; &amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a> <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get the first value from the sections with key, return the default value if it does not exist</p>
<p>Example:</p>
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use</span> <span class="ident">ini::Ini</span>;
<span class="kw">let</span> <span class="ident">input</span> <span class="op">=</span> <span class="string">&quot;[sec]\n&quot;</span>;
<span class="kw">let</span> <span class="ident">ini</span> <span class="op">=</span> <span class="ident">Ini::load_from_str</span>(<span class="ident">input</span>).<span class="ident">unwrap</span>();
<span class="macro">assert_eq!</span>(<span class="ident">ini</span>.<span class="ident">get_from_or</span>(<span class="prelude-val">Some</span>(<span class="string">&quot;sec&quot;</span>), <span class="string">&quot;key&quot;</span>, <span class="string">&quot;default&quot;</span>), <span class="string">&quot;default&quot;</span>);</code></pre></div>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get_from_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#629-635">source</a></span><h4 class="code-header">pub fn <a href="#method.get_from_mut" class="fnname">get_from_mut</a>&lt;'a, S&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;'a mut self,<br>&nbsp;&nbsp;&nbsp;&nbsp;section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;,<br>&nbsp;&nbsp;&nbsp;&nbsp;key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a mut <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Get the first mutable value from the sections with key</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#638-643">source</a></span><h4 class="code-header">pub fn <a href="#method.delete" class="fnname">delete</a>&lt;S&gt;(&amp;mut self, section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Delete the first section with key, return the properties if it exists</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.delete_from" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#646-650">source</a></span><h4 class="code-header">pub fn <a href="#method.delete_from" class="fnname">delete_from</a>&lt;S&gt;(&amp;mut self, section: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;, key: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt; <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;,&nbsp;</span></h4></section></summary><div class="docblock"><p>Delete the key from the section, return the value if key exists or None</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.len" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#653-655">source</a></span><h4 class="code-header">pub fn <a href="#method.len" class="fnname">len</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.usize.html">usize</a></h4></section></summary><div class="docblock"><p>Total sections count</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.is_empty" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#658-660">source</a></span><h4 class="code-header">pub fn <a href="#method.is_empty" class="fnname">is_empty</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.bool.html">bool</a></h4></section></summary><div class="docblock"><p>Check if object coutains no section</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ini-1" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#703-776">source</a></span><a href="#impl-Ini-1" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to_file" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#705-707">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to_file" class="fnname">write_to_file</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(&amp;self, filename: P) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a file</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to_file_policy" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#710-716">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to_file_policy" class="fnname">write_to_file_policy</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;filename: P,<br>&nbsp;&nbsp;&nbsp;&nbsp;policy: <a class="enum" href="enum.EscapePolicy.html" title="enum ini::EscapePolicy">EscapePolicy</a><br>) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a file</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to_file_opt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#719-725">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to_file_opt" class="fnname">write_to_file_opt</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;filename: P,<br>&nbsp;&nbsp;&nbsp;&nbsp;opt: <a class="struct" href="struct.WriteOption.html" title="struct ini::WriteOption">WriteOption</a><br>) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a file with options</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#728-730">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to" class="fnname">write_to</a>&lt;W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>&gt;(&amp;self, writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>W) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a writer</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to_policy" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#733-737">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to_policy" class="fnname">write_to_policy</a>&lt;W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>W,<br>&nbsp;&nbsp;&nbsp;&nbsp;policy: <a class="enum" href="enum.EscapePolicy.html" title="enum ini::EscapePolicy">EscapePolicy</a><br>) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a writer</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.write_to_opt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#740-775">source</a></span><h4 class="code-header">pub fn <a href="#method.write_to_opt" class="fnname">write_to_opt</a>&lt;W:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>W,<br>&nbsp;&nbsp;&nbsp;&nbsp;opt: <a class="struct" href="struct.WriteOption.html" title="struct ini::WriteOption">WriteOption</a><br>) -&gt; <a class="type" href="https://doc.rust-lang.org/1.64.0/std/io/error/type.Result.html" title="type std::io::error::Result">Result</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>&gt;</h4></section></summary><div class="docblock"><p>Write to a writer with options</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ini-2" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#778-859">source</a></span><a href="#impl-Ini-2" class="anchor"></a><h3 class="code-header in-band">impl <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_str" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#780-782">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_str" class="fnname">load_from_str</a>(buf: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="struct" href="struct.ParseError.html" title="struct ini::ParseError">ParseError</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a string</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_str_noescape" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#785-789">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_str_noescape" class="fnname">load_from_str_noescape</a>(buf: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="struct" href="struct.ParseError.html" title="struct ini::ParseError">ParseError</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a string, but do not interpret ' as an escape character</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_str_opt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#792-795">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_str_opt" class="fnname">load_from_str_opt</a>(buf: &amp;<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>, opt: <a class="struct" href="struct.ParseOption.html" title="struct ini::ParseOption">ParseOption</a>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="struct" href="struct.ParseError.html" title="struct ini::ParseError">ParseError</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a string with options</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_from" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#798-800">source</a></span><h4 class="code-header">pub fn <a href="#method.read_from" class="fnname">read_from</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>&gt;(reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a reader</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_from_noescape" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#803-807">source</a></span><h4 class="code-header">pub fn <a href="#method.read_from_noescape" class="fnname">read_from_noescape</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>&gt;(reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>R) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a reader, but do not interpret ' as an escape character</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.read_from_opt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#810-818">source</a></span><h4 class="code-header">pub fn <a href="#method.read_from_opt" class="fnname">read_from_opt</a>&lt;R:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>R,<br>&nbsp;&nbsp;&nbsp;&nbsp;opt: <a class="struct" href="struct.ParseOption.html" title="struct ini::ParseOption">ParseOption</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a reader with options</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_file" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#821-823">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_file" class="fnname">load_from_file</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(filename: P) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a file</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_file_noescape" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#826-830">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_file_noescape" class="fnname">load_from_file_noescape</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;filename: P<br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a file, but do not interpret ' as an escape character</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.load_from_file_opt" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#833-858">source</a></span><h4 class="code-header">pub fn <a href="#method.load_from_file_opt" class="fnname">load_from_file_opt</a>&lt;P:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>&gt;&gt;(<br>&nbsp;&nbsp;&nbsp;&nbsp;filename: P,<br>&nbsp;&nbsp;&nbsp;&nbsp;opt: <a class="struct" href="struct.ParseOption.html" title="struct ini::ParseOption">ParseOption</a><br>) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;<a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a>, <a class="enum" href="enum.Error.html" title="enum ini::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Load from a file with options</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Ini-3" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#907-923">source</a></span><a href="#impl-Ini-3" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#909-911">source</a></span><h4 class="code-header">pub fn <a href="#method.iter" class="fnname">iter</a>(&amp;'a self) -&gt; <a class="struct" href="struct.SectionIter.html" title="struct ini::SectionIter">SectionIter</a>&lt;'a&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.SectionIter.html" title="struct ini::SectionIter">SectionIter</a>&lt;'a&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.SectionIter.html" title="struct ini::SectionIter">SectionIter</a>&lt;'a&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;, &amp;'a <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>);</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Immutable iterate though sections</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.mut_iter" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#915-917">source</a></span><h4 class="code-header">pub fn <a href="#method.mut_iter" class="fnname">mut_iter</a>(&amp;'a mut self) -&gt; <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;, &amp;'a mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>);</span></code></span></span></span></span></h4></section><span class="item-info"><div class="stab deprecated"><span class="emoji">👎</span> Deprecated: <p>Use <code>iter_mut</code> instead!</p>
</div></span></summary><div class="docblock"><p>Mutable iterate though sections</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.iter_mut" class="method has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#920-922">source</a></span><h4 class="code-header">pub fn <a href="#method.iter_mut" class="fnname">iter_mut</a>(&amp;'a mut self) -&gt; <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;<span class="notable-traits"><span class="notable-traits-tooltip"><span class="notable-traits-tooltiptext"><span class="docblock"><span class="notable">Notable traits for <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;</span><code class="content"><span class="where fmt-newline">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html" title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;</span><span class="where fmt-newline"> type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;, &amp;'a mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>);</span></code></span></span></span></span></h4></section></summary><div class="docblock"><p>Mutable iterate though sections</p>
</div></details></div></details></div><h2 id="trait-implementations" class="small-section-header">Trait Implementations<a href="#trait-implementations" class="anchor"></a></h2><div id="trait-implementations-list"><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Clone-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#504">source</a></span><a href="#impl-Clone-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#504">source</a></span><a href="#method.clone" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone" class="fnname">clone</a>(&amp;self) -&gt; <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h4></section></summary><div class='docblock'><p>Returns a copy of the value. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#tymethod.clone">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="Stable since Rust version 1.0.0">1.0.0</span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/clone.rs.html#132-134">source</a></span><a href="#method.clone_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from" class="fnname">clone_from</a>(&amp;mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;</a>Self)</h4></section></summary><div class='docblock'><p>Performs copy-assignment from <code>source</code>. <a href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html#method.clone_from">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Default-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#504">source</a></span><a href="#impl-Default-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html" title="trait core::default::Default">Default</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.default" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#504">source</a></span><a href="#method.default" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html#tymethod.default" class="fnname">default</a>() -&gt; <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h4></section></summary><div class='docblock'><p>Returns the “default value” for a type. <a href="https://doc.rust-lang.org/1.64.0/core/default/trait.Default.html#tymethod.default">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3C%26%27q%20str%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#683-692">source</a></span><a href="#impl-Index%3C%26%27q%20str%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;'q&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a>&lt;&amp;'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt; for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#686-691">source</a></span><a href="#method.index-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>&lt;'a&gt;(&amp;'a self, index: &amp;'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; &amp;'a <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-Index%3COption%3CS%3E%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#663-672">source</a></span><a href="#impl-Index%3COption%3CS%3E%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;S:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html" title="trait core::ops::index::Index">Index</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;&gt; for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Output" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Output" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#associatedtype.Output" class="associatedtype">Output</a> = <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>The returned type after indexing.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#666-671">source</a></span><a href="#method.index" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index" class="fnname">index</a>(&amp;self, index: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; &amp;<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>Performs the indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.Index.html#tymethod.index">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IndexMut%3C%26%27q%20str%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#694-701">source</a></span><a href="#impl-IndexMut%3C%26%27q%20str%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;'q&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a>&lt;&amp;'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt; for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index_mut-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#695-700">source</a></span><a href="#method.index_mut-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html#tymethod.index_mut" class="fnname">index_mut</a>&lt;'a&gt;(&amp;'a mut self, index: &amp;'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -&gt; &amp;'a mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>Performs the mutable indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html#tymethod.index_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IndexMut%3COption%3CS%3E%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#674-681">source</a></span><a href="#impl-IndexMut%3COption%3CS%3E%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;S:&nbsp;<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>&gt;&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html" title="trait core::ops::index::IndexMut">IndexMut</a>&lt;<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;&gt; for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.index_mut" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#675-680">source</a></span><a href="#method.index_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html#tymethod.index_mut" class="fnname">index_mut</a>(&amp;mut self, index: <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;S&gt;) -&gt; &amp;mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a></h4></section></summary><div class='docblock'><p>Performs the mutable indexing (<code>container[index]</code>) operation. <a href="https://doc.rust-lang.org/1.64.0/core/ops/index/trait.IndexMut.html#tymethod.index_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26%27a%20Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#925-932">source</a></span><a href="#impl-IntoIterator-for-%26%27a%20Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &amp;'a <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;, &amp;'a <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>)</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.IntoIter" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IntoIter" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="struct.SectionIter.html" title="struct ini::SectionIter">SectionIter</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#929-931">source</a></span><a href="#method.into_iter" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle" open><summary><section id="impl-IntoIterator-for-%26%27a%20mut%20Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#934-941">source</a></span><a href="#impl-IntoIterator-for-%26%27a%20mut%20Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;'a&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html" title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &amp;'a mut <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Item-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Item-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item" class="associatedtype">Item</a> = (<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a>&lt;&amp;'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>&gt;, &amp;'a mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>)</h4></section></summary><div class='docblock'><p>The type of the elements being iterated over.</p>
</div></details><details class="rustdoc-toggle" open><summary><section id="associatedtype.IntoIter-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.IntoIter-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" class="associatedtype">IntoIter</a> = <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a>&lt;'a&gt;</h4></section></summary><div class='docblock'><p>Which kind of iterator are we turning this into?</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into_iter-1" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="../src/ini/lib.rs.html#938-940">source</a></span><a href="#method.into_iter-1" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter" class="fnname">into_iter</a>(self) -&gt; Self::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter" title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></h4></section></summary><div class='docblock'><p>Creates an iterator from a value. <a href="https://doc.rust-lang.org/1.64.0/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></details></div></details></div><h2 id="synthetic-implementations" class="small-section-header">Auto Trait Implementations<a href="#synthetic-implementations" class="anchor"></a></h2><div id="synthetic-implementations-list"><section id="impl-RefUnwindSafe-for-Ini" class="impl has-srclink"><a href="#impl-RefUnwindSafe-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.RefUnwindSafe.html" title="trait core::panic::unwind_safe::RefUnwindSafe">RefUnwindSafe</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section><section id="impl-Send-for-Ini" class="impl has-srclink"><a href="#impl-Send-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section><section id="impl-Sync-for-Ini" class="impl has-srclink"><a href="#impl-Sync-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section><section id="impl-Unpin-for-Ini" class="impl has-srclink"><a href="#impl-Unpin-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Unpin.html" title="trait core::marker::Unpin">Unpin</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section><section id="impl-UnwindSafe-for-Ini" class="impl has-srclink"><a href="#impl-UnwindSafe-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/panic/unwind_safe/trait.UnwindSafe.html" title="trait core::panic::unwind_safe::UnwindSafe">UnwindSafe</a> for <a class="struct" href="struct.Ini.html" title="struct ini::Ini">Ini</a></h3></section></div><h2 id="blanket-implementations" class="small-section-header">Blanket Implementations<a href="#blanket-implementations" class="anchor"></a></h2><div id="blanket-implementations-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Any-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#203">source</a></span><a href="#impl-Any-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html" title="trait core::any::Any">Any</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: 'static + ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.type_id" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/any.rs.html#204">source</a></span><a href="#method.type_id" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id" class="fnname">type_id</a>(&amp;self) -&gt; <a class="struct" href="https://doc.rust-lang.org/1.64.0/core/any/struct.TypeId.html" title="struct core::any::TypeId">TypeId</a></h4></section></summary><div class='docblock'><p>Gets the <code>TypeId</code> of <code>self</code>. <a href="https://doc.rust-lang.org/1.64.0/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Borrow%3CT%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#209">source</a></span><a href="#impl-Borrow%3CT%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#211">source</a></span><a href="#method.borrow" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow" class="fnname">borrow</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;</a>T</h4></section></summary><div class='docblock'><p>Immutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-BorrowMut%3CT%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#218">source</a></span><a href="#impl-BorrowMut%3CT%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a>&lt;T&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: ?<a class="trait" href="https://doc.rust-lang.org/1.64.0/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.borrow_mut" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/91522" title="Tracking issue for const_borrow">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/borrow.rs.html#219">source</a></span><a href="#method.borrow_mut" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut" class="fnname">borrow_mut</a>(&amp;mut self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>T</h4></section></summary><div class='docblock'><p>Mutably borrows from an owned value. <a href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-From%3CT%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#557">source</a></span><a href="#impl-From%3CT%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt; for T</h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#559">source</a></span><a href="#method.from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html#tymethod.from" class="fnname">from</a>(t: T) -&gt; T</h4></section></summary><div class="docblock"><p>Returns the argument unchanged.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Into%3CU%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#541">source</a></span><a href="#impl-Into%3CU%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a>&lt;T&gt;,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#549">source</a></span><a href="#method.into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html#tymethod.into" class="fnname">into</a>(self) -&gt; U</h4></section></summary><div class="docblock"><p>Calls <code>U::from(self)</code>.</p>
<p>That is, this conversion is whatever the implementation of
<code><a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="From">From</a>&lt;T&gt; for U</code> chooses to do.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-ToOwned-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#83">source</a></span><a href="#impl-ToOwned-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html" title="trait alloc::borrow::ToOwned">ToOwned</a> for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Owned" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Owned" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#associatedtype.Owned" class="associatedtype">Owned</a> = T</h4></section></summary><div class='docblock'><p>The resulting type after obtaining ownership.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.to_owned" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#88">source</a></span><a href="#method.to_owned" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned" class="fnname">to_owned</a>(&amp;self) -&gt; T</h4></section></summary><div class='docblock'><p>Creates owned data from borrowed data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.clone_into" class="method trait-impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/alloc/borrow.rs.html#92">source</a></span><a href="#method.clone_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into" class="fnname">clone_into</a>(&amp;self, target: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&amp;mut </a>T)</h4></section></summary><div class='docblock'><p>Uses borrowed data to replace owned data, usually by cloning. <a href="https://doc.rust-lang.org/1.64.0/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryFrom%3CU%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#598">source</a></span><a href="#impl-TryFrom%3CU%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;T&gt;,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" class="associatedtype">Error</a> = <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/convert/enum.Infallible.html" title="enum core::convert::Infallible">Infallible</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_from" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#604">source</a></span><a href="#method.try_from" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#tymethod.try_from" class="fnname">try_from</a>(value: U) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;T, &lt;T as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;U&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-TryInto%3CU%3E-for-Ini" class="impl has-srclink"><span class="rightside"><a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#583">source</a></span><a href="#impl-TryInto%3CU%3E-for-Ini" class="anchor"></a><h3 class="code-header in-band">impl&lt;T, U&gt; <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a>&lt;U&gt; for T <span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;U: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;,&nbsp;</span></h3></section></summary><div class="impl-items"><details class="rustdoc-toggle" open><summary><section id="associatedtype.Error-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Error-1" class="anchor"></a><h4 class="code-header">type <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#associatedtype.Error" class="associatedtype">Error</a> = &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a></h4></section></summary><div class='docblock'><p>The type returned in the event of a conversion error.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.try_into" class="method trait-impl has-srclink"><span class="rightside"><span class="since" title="const unstable">const: <a href="https://github.com/rust-lang/rust/issues/88674" title="Tracking issue for const_convert">unstable</a></span> · <a class="srclink" href="https://doc.rust-lang.org/1.64.0/src/core/convert/mod.rs.html#589">source</a></span><a href="#method.try_into" class="anchor"></a><h4 class="code-header">fn <a href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html#tymethod.try_into" class="fnname">try_into</a>(self) -&gt; <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a>&lt;U, &lt;U as <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html" title="trait core::convert::TryFrom">TryFrom</a>&lt;T&gt;&gt;::<a class="associatedtype" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryFrom.html#associatedtype.Error" title="type core::convert::TryFrom::Error">Error</a>&gt;</h4></section></summary><div class='docblock'><p>Performs the conversion.</p>
</div></details></div></details></div></section></div></main><div id="rustdoc-vars" data-root-path="../" data-current-crate="ini" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.64.0 (a55dd71d5 2022-09-19)" ></div></body></html>