82 lines
86 KiB
HTML
82 lines
86 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="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">☰</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<&'q str></a></li><li><a href="#impl-Index%3COption%3CS%3E%3E-for-Ini">Index<Option<S>></a></li><li><a href="#impl-IndexMut%3C%26%27q%20str%3E-for-Ini">IndexMut<&'q str></a></li><li><a href="#impl-IndexMut%3COption%3CS%3E%3E-for-Ini">IndexMut<Option<S>></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<T></a></li><li><a href="#impl-BorrowMut%3CT%3E-for-Ini">BorrowMut<T></a></li><li><a href="#impl-From%3CT%3E-for-Ini">From<T></a></li><li><a href="#impl-Into%3CU%3E-for-Ini">Into<U></a></li><li><a href="#impl-ToOwned-for-Ini">ToOwned</a></li><li><a href="#impl-TryFrom%3CU%3E-for-Ini">TryFrom<U></a></li><li><a href="#impl-TryInto%3CU%3E-for-Ini">TryInto<U></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">−</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>() -> <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><S>(&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><S>) -> <a class="struct" href="struct.SectionSetter.html" title="struct ini::SectionSetter">SectionSetter</a><'_> <span class="where fmt-newline">where<br> 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><<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></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>(&mut self) -> <a class="struct" href="struct.SectionSetter.html" title="struct ini::SectionSetter">SectionSetter</a><'_></h4></section></summary><div class="docblock"><p>Set with general section, a simple wrapper of <code>with_section(None::<String>)</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>(&self) -> &<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>(&mut self) -> &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><S>(&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><S>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>> <span class="where fmt-newline">where<br> 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><<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></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><S>(&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><S>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>> <span class="where fmt-newline">where<br> 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><<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></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><S>(<br> &self,<br> 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><S><br>) -> 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><Item = &<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>> <span class="where fmt-newline">where<br> 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><<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></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><S>(<br> &mut self,<br> 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><S><br>) -> 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><Item = &mut <a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>> <span class="where fmt-newline">where<br> 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><<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></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>(&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><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>) -> <a class="enum" href="enum.SectionEntry.html" title="enum ini::SectionEntry">SectionEntry</a><'_></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>(&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>(&self) -> 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><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><&<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>></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><S>(&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><S>, 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> 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><<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></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><'a, S>(&'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><S>, key: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</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><&'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> 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><<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></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">"[sec]\nabc = def\n"</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">"sec"</span>), <span class="string">"abc"</span>), <span class="prelude-val">Some</span>(<span class="string">"def"</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><'a, S>(<br> &'a self,<br> 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><S>,<br> key: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>,<br> default: &'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> &'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> 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><<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></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">"[sec]\n"</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">"sec"</span>), <span class="string">"key"</span>, <span class="string">"default"</span>), <span class="string">"default"</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><'a, S>(<br> &'a mut self,<br> 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><S>,<br> key: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&'a mut <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> 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><<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></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><S>(&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><S>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="struct.Properties.html" title="struct ini::Properties">Properties</a>> <span class="where fmt-newline">where<br> 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><<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></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><S>(&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><S>, key: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</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><<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> 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><<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></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>(&self) -> <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>(&self) -> <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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(&self, filename: P) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(<br> &self,<br> filename: P,<br> policy: <a class="enum" href="enum.EscapePolicy.html" title="enum ini::EscapePolicy">EscapePolicy</a><br>) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(<br> &self,<br> filename: P,<br> opt: <a class="struct" href="struct.WriteOption.html" title="struct ini::WriteOption">WriteOption</a><br>) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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><W: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>>(&self, writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>W) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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><W: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>>(<br> &self,<br> writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>W,<br> policy: <a class="enum" href="enum.EscapePolicy.html" title="enum ini::EscapePolicy">EscapePolicy</a><br>) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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><W: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Write.html" title="trait std::io::Write">Write</a>>(<br> &self,<br> writer: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>W,<br> opt: <a class="struct" href="struct.WriteOption.html" title="struct ini::WriteOption">WriteOption</a><br>) -> <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><<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.unit.html">()</a>></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: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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: &<a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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: &<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>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><R: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>>(reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>R) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><R: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>>(reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>R) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><R: <a class="trait" href="https://doc.rust-lang.org/1.64.0/std/io/trait.Read.html" title="trait std::io::Read">Read</a>>(<br> reader: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&mut </a>R,<br> opt: <a class="struct" href="struct.ParseOption.html" title="struct ini::ParseOption">ParseOption</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(filename: P) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(<br> filename: P<br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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><P: <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.AsRef.html" title="trait core::convert::AsRef">AsRef</a><<a class="struct" href="https://doc.rust-lang.org/1.64.0/std/path/struct.Path.html" title="struct std::path::Path">Path</a>>>(<br> filename: P,<br> opt: <a class="struct" href="struct.ParseOption.html" title="struct ini::ParseOption">ParseOption</a><br>) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<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>></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<'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 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>(&'a self) -> <a class="struct" href="struct.SectionIter.html" title="struct ini::SectionIter">SectionIter</a><'a><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><'a></span><code class="content"><span class="where fmt-newline">impl<'a> <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><'a></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><&'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>, &'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>(&'a mut self) -> <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a><'a><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><'a></span><code class="content"><span class="where fmt-newline">impl<'a> <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><'a></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><&'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>, &'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>(&'a mut self) -> <a class="struct" href="struct.SectionIterMut.html" title="struct ini::SectionIterMut">SectionIterMut</a><'a><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><'a></span><code class="content"><span class="where fmt-newline">impl<'a> <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><'a></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><&'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>, &'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>(&self) -> <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>(&mut self, source: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</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>() -> <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<'q> <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><&'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</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" 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><'a>(&'a self, index: &'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> &'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<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><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>> <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><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><S>> 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>(&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><S>) -> &<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<'q> <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><&'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</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.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><'a>(&'a mut self, index: &'q <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>) -> &'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<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><<a class="struct" href="https://doc.rust-lang.org/1.64.0/alloc/string/struct.String.html" title="struct alloc::string::String">String</a>>> <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><<a class="enum" href="https://doc.rust-lang.org/1.64.0/core/option/enum.Option.html" title="enum core::option::Option">Option</a><S>> 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>(&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><S>) -> &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<'a> <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 &'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><&'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>, &'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><'a></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) -> 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<'a> <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 &'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><&'a <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.str.html">str</a>>, &'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><'a></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) -> 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<T> <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> 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>, </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>(&self) -> <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<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.Borrow.html" title="trait core::borrow::Borrow">Borrow</a><T> for T <span class="where fmt-newline">where<br> 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>, </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>(&self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&</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<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/borrow/trait.BorrowMut.html" title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <span class="where fmt-newline">where<br> 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>, </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>(&mut self) -> <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&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<T> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.From.html" title="trait core::convert::From">From</a><T> 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) -> 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<T, 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><U> for T <span class="where fmt-newline">where<br> 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><T>, </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) -> 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><T> 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<T> <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> 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>, </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>(&self) -> 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>(&self, target: <a class="primitive" href="https://doc.rust-lang.org/1.64.0/std/primitive.reference.html">&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<T, 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><U> for T <span class="where fmt-newline">where<br> 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><T>, </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) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><T, <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><U>>::<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>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<T, U> <a class="trait" href="https://doc.rust-lang.org/1.64.0/core/convert/trait.TryInto.html" title="trait core::convert::TryInto">TryInto</a><U> for T <span class="where fmt-newline">where<br> 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><T>, </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> = <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><T>>::<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) -> <a class="enum" href="https://doc.rust-lang.org/1.64.0/core/result/enum.Result.html" title="enum core::result::Result">Result</a><U, <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><T>>::<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>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> |