<spanclass="kw">for</span><spanclass="ident">ch</span><spanclass="kw">in</span><spanclass="string">"a short treatise on fungi"</span>.<spanclass="ident">chars</span>() {
</div><h2id='methods'class='small-section-header'>Methods<ahref='#methods'class='anchor'></a></h2><h3id='impl'class='impl'><codeclass='in-band'>impl<K, V><aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V></code><ahref='#impl'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#382-395'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.new'class="method"><codeid='new.v'>pub fn <ahref='#method.new'class='fnname'>new</a>() -> Self</code><aclass='srclink'href='../../src/indexmap/map.rs.html#384-386'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a new map. (Does not allocate.)</p>
</div><h4id='method.with_capacity'class="method"><codeid='with_capacity.v'>pub fn <ahref='#method.with_capacity'class='fnname'>with_capacity</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>) -> Self</code><aclass='srclink'href='../../src/indexmap/map.rs.html#392-394'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a new map with capacity for <code>n</code> key-value pairs. (Does not
allocate if <code>n</code> is zero.)</p>
<p>Computes in <strong>O(n)</strong> time.</p>
</div></div><h3id='impl-1'class='impl'><codeclass='in-band'>impl<K, V, S><aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S></code><ahref='#impl-1'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#397-467'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.with_capacity_and_hasher'class="method"><codeid='with_capacity_and_hasher.v'>pub fn <ahref='#method.with_capacity_and_hasher'class='fnname'>with_capacity_and_hasher</a>(n: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, hash_builder: S) -> Self <spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#403-427'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a new map with capacity for <code>n</code> key-value pairs. (Does not
allocate if <code>n</code> is zero.)</p>
<p>Computes in <strong>O(n)</strong> time.</p>
</div><h4id='method.len'class="method"><codeid='len.v'>pub fn <ahref='#method.len'class='fnname'>len</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#432'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return the number of key-value pairs in the map.</p>
<p>Computes in <strong>O(1)</strong> time.</p>
</div><h4id='method.is_empty'class="method"><codeid='is_empty.v'>pub fn <ahref='#method.is_empty'class='fnname'>is_empty</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#437'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Returns true if the map contains no elements.</p>
<p>Computes in <strong>O(1)</strong> time.</p>
</div><h4id='method.with_hasher'class="method"><codeid='with_hasher.v'>pub fn <ahref='#method.with_hasher'class='fnname'>with_hasher</a>(hash_builder: S) -> Self <spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#440-444'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create a new map with <code>hash_builder</code></p>
</div><h4id='method.hasher'class="method"><codeid='hasher.v'>pub fn <ahref='#method.hasher'class='fnname'>hasher</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>S <spanclass="where fmt-newline">where<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#447-451'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return a reference to the map's <code>BuildHasher</code>.</p>
</div><h4id='method.capacity'class="method"><codeid='capacity.v'>pub fn <ahref='#method.capacity'class='fnname'>capacity</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#454-456'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Computes in <strong>O(1)</strong> time.</p>
</div></div><h3id='impl-2'class='impl'><codeclass='in-band'>impl<K, V, S><aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><ahref='#impl-2'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#729-1075'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.clear'class="method"><codeid='clear.v'>pub fn <ahref='#method.clear'class='fnname'>clear</a>(&mut self)</code><aclass='srclink'href='../../src/indexmap/map.rs.html#744-746'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove all key-value pairs in the map, while preserving its capacity.</p>
<p>Computes in <strong>O(n)</strong> time.</p>
</div><h4id='method.reserve'class="method"><codeid='reserve.v'>pub fn <ahref='#method.reserve'class='fnname'>reserve</a>(&mut self, additional: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>)</code><aclass='srclink'href='../../src/indexmap/map.rs.html#751-755'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Reserve capacity for <code>additional</code> more key-value pairs.</p>
<p>FIXME Not implemented fully yet.</p>
</div><h4id='method.insert'class="method"><codeid='insert.v'>pub fn <ahref='#method.insert'class='fnname'>insert</a>(&mut self, key: K, value: V) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#793-814'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Insert a key-value pair in the map.</p>
<p>If an equivalent key already exists in the map: the key remains and
retains in its place in the order, its corresponding value is updated
with <code>value</code> and the older value is returned inside <code>Some(_)</code>.</p>
<p>If no equivalent key existed in the map: the new key-value pair is
inserted, last in order, and <code>None</code> is returned.</p>
<p>Computes in <strong>O(1)</strong> time (amortized average).</p>
<p>See also <ahref="#method.entry"><code>entry</code></a> if you you want to insert <em>or</em> modify
or if you need to get the index of the corresponding key-value pair.</p>
</div><h4id='method.insert_full'class="method"><codeid='insert_full.v'>pub fn <ahref='#method.insert_full'class='fnname'>insert_full</a>(&mut self, key: K, value: V) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, <aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><V><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#829-840'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Insert a key-value pair in the map, and get their index.</p>
<p>If an equivalent key already exists in the map: the key remains and
retains in its place in the order, its corresponding value is updated
with <code>value</code> and the older value is returned inside <code>(index, Some(_))</code>.</p>
<p>If no equivalent key existed in the map: the new key-value pair is
inserted, last in order, and <code>(index, None)</code> is returned.</p>
<p>Computes in <strong>O(1)</strong> time (amortized average).</p>
<p>See also <ahref="#method.entry"><code>entry</code></a> if you you want to insert <em>or</em> modify
or if you need to get the index of the corresponding key-value pair.</p>
</div><h4id='method.entry'class="method"><codeid='entry.v'>pub fn <ahref='#method.entry'class='fnname'>entry</a>(&mut self, key: K) -><aclass="enum"href="../../indexmap/map/enum.Entry.html"title="enum indexmap::map::Entry">Entry</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#846-849'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Get the given key’s corresponding entry in the map for insertion and/or
in-place manipulation.</p>
<p>Computes in <strong>O(1)</strong> time (amortized average).</p>
</div><h4id='method.iter'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.Iter.html"title="struct indexmap::map::Iter">Iter</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.Iter.html"title="struct indexmap::map::Iter">Iter</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.Iter.html"title="struct indexmap::map::Iter">Iter</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><codeid='iter.v'>pub fn <ahref='#method.iter'class='fnname'>iter</a>(&self) -><aclass="struct"href="../../indexmap/map/struct.Iter.html"title="struct indexmap::map::Iter">Iter</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#853-857'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return an iterator over the key-value pairs of the map, in their order</p>
</div><h4id='method.iter_mut'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.IterMut.html"title="struct indexmap::map::IterMut">IterMut</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.IterMut.html"title="struct indexmap::map::IterMut">IterMut</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.IterMut.html"title="struct indexmap::map::IterMut">IterMut</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><codeid='iter_mut.v'>pub fn <ahref='#method.iter_mut'class='fnname'>iter_mut</a>(&mut self) -><aclass="struct"href="../../indexmap/map/struct.IterMut.html"title="struct indexmap::map::IterMut">IterMut</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#860-864'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return an iterator over the key-value pairs of the map, in their order</p>
</div><h4id='method.keys'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.Keys.html"title="struct indexmap::map::Keys">Keys</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.Keys.html"title="struct indexmap::map::Keys">Keys</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.Keys.html"title="struct indexmap::map::Keys">Keys</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>K;</span></code></div></div><codeid='keys.v'>pub fn <ahref='#method.keys'class='fnname'>keys</a>(&self) -><aclass="struct"href="../../indexmap/map/struct.Keys.html"title="struct indexmap::map::Keys">Keys</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#867-871'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return an iterator over the keys of the map, in their order</p>
</div><h4id='method.values'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.Values.html"title="struct indexmap::map::Values">Values</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.Values.html"title="struct indexmap::map::Values">Values</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.Values.html"title="struct indexmap::map::Values">Values</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>V;</span></code></div></div><codeid='values.v'>pub fn <ahref='#method.values'class='fnname'>values</a>(&self) -><aclass="struct"href="../../indexmap/map/struct.Values.html"title="struct indexmap::map::Values">Values</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#874-878'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return an iterator over the values of the map, in their order</p>
</div><h4id='method.values_mut'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.ValuesMut.html"title="struct indexmap::map::ValuesMut">ValuesMut</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.ValuesMut.html"title="struct indexmap::map::ValuesMut">ValuesMut</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.ValuesMut.html"title="struct indexmap::map::ValuesMut">ValuesMut</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>V;</span></code></div></div><codeid='values_mut.v'>pub fn <ahref='#method.values_mut'class='fnname'>values_mut</a>(&mut self) -><aclass="struct"href="../../indexmap/map/struct.ValuesMut.html"title="struct indexmap::map::ValuesMut">ValuesMut</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#882-886'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return an iterator over mutable references to the the values of the map,
in their order</p>
</div><h4id='method.contains_key'class="method"><codeid='contains_key.v'>pub fn <ahref='#method.contains_key'class='fnname'>contains_key</a><Q: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>>(&self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Q) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a><spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="../../indexmap/trait.Equivalent.html"title="trait indexmap::Equivalent">Equivalent</a><K>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#891-895'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return <code>true</code> if an equivalent to <code>key</code> exists in the map.</p>
<p>Computes in <strong>O(1)</strong> time (average).</p>
</div><h4id='method.get'class="method"><codeid='get.v'>pub fn <ahref='#method.get'class='fnname'>get</a><Q: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>>(&self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Q) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V><spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="../../indexmap/trait.Equivalent.html"title="trait indexmap::Equivalent">Equivalent</a><K>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#901-905'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Return a reference to the value stored for <code>key</code>, if it is present,
else <code>None</code>.</p>
<p>Computes in <strong>O(1)</strong> time (average).</p>
<p>Computes in <strong>O(1)</strong> time (average).</p>
</div><h4id='method.swap_remove'class="method"><codeid='swap_remove.v'>pub fn <ahref='#method.swap_remove'class='fnname'>swap_remove</a><Q: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>>(&mut self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Q) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><V><spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="../../indexmap/trait.Equivalent.html"title="trait indexmap::Equivalent">Equivalent</a><K>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#974-978'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the key-value pair equivalent to <code>key</code> and return
its value.</p>
<p>Like <code>Vec::swap_remove</code>, the pair is removed by swapping it with the
last element of the map and popping it off. <strong>This perturbs
the postion of what used to be the last element!</strong></p>
<p>Return <code>None</code> if <code>key</code> is not in map.</p>
<p>Computes in <strong>O(1)</strong> time (average).</p>
</div><h4id='method.swap_remove_full'class="method"><codeid='swap_remove_full.v'>pub fn <ahref='#method.swap_remove_full'class='fnname'>swap_remove_full</a><Q: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>>(&mut self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>Q) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.usize.html">usize</a>, K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>><spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="../../indexmap/trait.Equivalent.html"title="trait indexmap::Equivalent">Equivalent</a><K>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#988-997'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the key-value pair equivalent to <code>key</code> and return it and
the index it had.</p>
<p>Like <code>Vec::swap_remove</code>, the pair is removed by swapping it with the
last element of the map and popping it off. <strong>This perturbs
the postion of what used to be the last element!</strong></p>
<p>Return <code>None</code> if <code>key</code> is not in map.</p>
</div><h4id='method.pop'class="method"><codeid='pop.v'>pub fn <ahref='#method.pop'class='fnname'>pop</a>(&mut self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html"title="enum core::option::Option">Option</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1002-1004'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Remove the last key-value pair</p>
<p>Computes in <strong>O(1)</strong> time (average).</p>
</div><h4id='method.retain'class="method"><codeid='retain.v'>pub fn <ahref='#method.retain'class='fnname'>retain</a><F>(&mut self, keep: F) <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>V) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1013-1017'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Scan through each key-value pair in the map and keep those where the
<p>The elements are visited in order, and remaining elements keep their
order.</p>
<p>Computes in <strong>O(n)</strong> time (average).</p>
</div><h4id='method.sort_keys'class="method"><codeid='sort_keys.v'>pub fn <ahref='#method.sort_keys'class='fnname'>sort_keys</a>(&mut self) <spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html"title="trait core::cmp::Ord">Ord</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1035-1039'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Sort the map’s key-value pairs by the default ordering of the keys.</p>
<p>See <code>sort_by</code> for details.</p>
</div><h4id='method.sort_by'class="method"><codeid='sort_by.v'>pub fn <ahref='#method.sort_by'class='fnname'>sort_by</a><F>(&mut self, compare: F) <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1049-1053'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Sort the map’s key-value pairs in place using the comparison
function <code>compare</code>.</p>
<p>The comparison function receives two key and value pairs to compare (you
can sort by keys or values or their combination as needed).</p>
<p>Computes in <strong>O(n log n + c)</strong> time and <strong>O(n)</strong> space where <em>n</em> is
the length of the map and <em>c</em> the capacity. The sort is stable.</p>
</div><h4id='method.sorted_by'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.IntoIter.html"title="struct indexmap::map::IntoIter">IntoIter</a><K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.IntoIter.html"title="struct indexmap::map::IntoIter">IntoIter</a><K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.IntoIter.html"title="struct indexmap::map::IntoIter">IntoIter</a><K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><codeid='sorted_by.v'>pub fn <ahref='#method.sorted_by'class='fnname'>sorted_by</a><F>(self, cmp: F) -><aclass="struct"href="../../indexmap/map/struct.IntoIter.html"title="struct indexmap::map::IntoIter">IntoIter</a><K, V><spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/cmp/enum.Ordering.html"title="enum core::cmp::Ordering">Ordering</a>, </span></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1059-1064'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Sort the key-value pairs of the map and return a by value iterator of
the key-value pairs with the result.</p>
<p>The sort is stable.</p>
</div><h4id='method.drain'class="method"><divclass="important-traits"><divclass='tooltip'>ⓘ<spanclass='tooltiptext'>Important traits for <aclass="struct"href="../../indexmap/map/struct.Drain.html"title="struct indexmap::map::Drain">Drain</a><'a, K, V></span></div><divclass="content hidden"><h3class="important">Important traits for <aclass="struct"href="../../indexmap/map/struct.Drain.html"title="struct indexmap::map::Drain">Drain</a><'a, K, V></h3><codeclass="content"><spanclass="where fmt-newline">impl<'a, K, V><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a> for <aclass="struct"href="../../indexmap/map/struct.Drain.html"title="struct indexmap::map::Drain">Drain</a><'a, K, V></span><spanclass="where fmt-newline"> type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>;</span></code></div></div><codeid='drain.v'>pub fn <ahref='#method.drain'class='fnname'>drain</a>(&mut self, range: <aclass="struct"href="https://doc.rust-lang.org/nightly/core/ops/range/struct.RangeFull.html"title="struct core::ops::range::RangeFull">RangeFull</a>) -><aclass="struct"href="../../indexmap/map/struct.Drain.html"title="struct indexmap::map::Drain">Drain</a><K, V></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1068-1074'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Clears the <code>IndexMap</code>, returning all key-value pairs as a drain iterator.
</div><h4id='method.retain2'class="method hidden"><codeid='retain2.v'>fn <ahref='../../indexmap/map/trait.MutableKeys.html#tymethod.retain2'class='fnname'>retain2</a><F>(&mut self, keep: F) <spanclass="where fmt-newline">where<br> F: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnMut.html"title="trait core::ops::function::FnMut">FnMut</a>(<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>V) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>, </span></code><aclass='srclink'href='../../src/indexmap/mutable_keys.rs.html#62-66'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Scan through each key-value pair in the map and keep those where the closure <code>keep</code> returns <code>true</code>. <ahref="../../indexmap/map/trait.MutableKeys.html#tymethod.retain2">Read more</a></p>
</div><h4id='method.__private_marker'class="method hidden"><codeid='__private_marker.v'>fn <ahref='../../indexmap/map/trait.MutableKeys.html#tymethod.__private_marker'class='fnname'>__private_marker</a>(&self) -> PrivateMarker</code><aclass='srclink'href='../../src/indexmap/mutable_keys.rs.html#68-70'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>This method is not useful in itself – it is there to “seal” the trait for external implementation, so that we can add methods without causing breaking changes. <ahref="../../indexmap/map/trait.MutableKeys.html#tymethod.__private_marker">Read more</a></p>
</div></div><h3id='impl-IntoIterator'class='impl'><codeclass='in-band'>impl<'a, K, V, S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &'a <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><ahref='#impl-IntoIterator'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#1781-1790'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Item'class="type"><codeid='Item.t'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter'class="type"><codeid='IntoIter.t'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="../../indexmap/map/struct.Iter.html"title="struct indexmap::map::Iter">Iter</a><'a, K, V></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter'class="method hidden"><codeid='into_iter.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1787-1789'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-IntoIterator-1'class='impl'><codeclass='in-band'>impl<'a, K, V, S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for &'a mut <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><ahref='#impl-IntoIterator-1'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#1792-1801'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Item-1'class="type"><codeid='Item.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>K, <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a mut </a>V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-1'class="type"><codeid='IntoIter.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="../../indexmap/map/struct.IterMut.html"title="struct indexmap::map::IterMut">IterMut</a><'a, K, V></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-1'class="method hidden"><codeid='into_iter.v-1'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1798-1800'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-IntoIterator-2'class='impl'><codeclass='in-band'>impl<K, V, S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><ahref='#impl-IntoIterator-2'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#1803-1814'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Item-2'class="type"><codeid='Item.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-2'class="type"><codeid='IntoIter.t-2'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = <aclass="struct"href="../../indexmap/map/struct.IntoIter.html"title="struct indexmap::map::IntoIter">IntoIter</a><K, V></code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-2'class="method hidden"><codeid='into_iter.v-2'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a></code><aclass='srclink'href='../../src/indexmap/map.rs.html#1809-1813'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-Index%3C%26%27a%20Q%3E'class='impl'><codeclass='in-band'>impl<'a, K, V, Q: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html"title="trait core::ops::index::Index">Index</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Q> for <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> Q: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="../../indexmap/trait.Equivalent.html"title="trait indexmap::Equivalent">Equivalent</a><K>,<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>, </span></code><ahref='#impl-Index%3C%26%27a%20Q%3E'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#1818-1833'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Output'class="type"><codeid='Output.t'>type <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#associatedtype.Output'class="type">Output</a> = V</code></h4><divclass='docblock'><p>The returned type after indexing.</p>
</div><h4id='method.index'class="method"><codeid='index.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.Index.html#tymethod.index'class='fnname'>index</a>(&self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Q) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>V</code><aclass='srclink'href='../../src/indexmap/map.rs.html#1826-1832'title='goto source code'>[src]</a></h4><divclass='docblock'><p><em><strong>Panics</strong></em> if <code>key</code> is not present in the map.</p>
<p>You can <strong>not</strong> insert new pairs with index syntax, use <code>.insert()</code>.</p>
</div><divclass='impl-items'><h4id='method.index_mut'class="method"><codeid='index_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/ops/index/trait.IndexMut.html#tymethod.index_mut'class='fnname'>index_mut</a>(&mut self, key: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&'a </a>Q) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>V</code><aclass='srclink'href='../../src/indexmap/map.rs.html#1845-1851'title='goto source code'>[src]</a></h4><divclass='docblock'><p><em><strong>Panics</strong></em> if <code>key</code> is not present in the map.</p>
</div></div><h3id='impl-FromIterator%3C(K%2C%20V)%3E'class='impl'><codeclass='in-band'>impl<K, V, S><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html"title="trait core::iter::traits::collect::FromIterator">FromIterator</a><<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>> for <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/default/trait.Default.html"title="trait core::default::Default">Default</a>, </span></code><ahref='#impl-FromIterator%3C(K%2C%20V)%3E'class='anchor'></a><aclass='srclink'href='../../src/indexmap/map.rs.html#1854-1870'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.from_iter'class="method"><codeid='from_iter.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.FromIterator.html#tymethod.from_iter'class='fnname'>from_iter</a><I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a><Item = <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">(</a>K, V<aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.tuple.html">)</a>>>(iterable: I) -> Self</code><aclass='srclink'href='../../src/indexmap/map.rs.html#1863-1869'title='goto source code'>[src]</a></h4><divclass='docblock'><p>Create an <code>IndexMap</code> from the sequence of key-value pairs in the
iterable.</p>
<p><code>from_iter</code> uses the same logic as <code>extend</code>. See
<ahref="#method.extend"><code>extend</code></a> for more details.</p>
</div></div><h3id='impl-IntoDeserializer%3C%27de%2C%20E%3E'class='impl'><codeclass='in-band'>impl<'de, K, V, S, E><aclass="trait"href="../../serde/de/trait.IntoDeserializer.html"title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E> for <aclass="struct"href="../../indexmap/map/struct.IndexMap.html"title="struct indexmap::map::IndexMap">IndexMap</a><K, V, S><spanclass="where fmt-newline">where<br> K: <aclass="trait"href="../../serde/de/trait.IntoDeserializer.html"title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/cmp/trait.Eq.html"title="trait core::cmp::Eq">Eq</a> + <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.Hash.html"title="trait core::hash::Hash">Hash</a>,<br> V: <aclass="trait"href="../../serde/de/trait.IntoDeserializer.html"title="trait serde::de::IntoDeserializer">IntoDeserializer</a><'de, E>,<br> S: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/hash/trait.BuildHasher.html"title="trait core::hash::BuildHasher">BuildHasher</a>,<br> E: <aclass="trait"href="../../serde/de/trait.Error.html"title="trait serde::de::Error">Error</a>, </span></code><ahref='#impl-IntoDeserializer%3C%27de%2C%20E%3E'class='anchor'></a><aclass='srclink'href='../../src/indexmap/serde.rs.html#70-81'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Deserializer'class="type"><codeid='Deserializer.t'>type <ahref='../../serde/de/trait.IntoDeserializer.html#associatedtype.Deserializer'class="type">Deserializer</a> = <aclass="struct"href="../../serde/de/value/struct.MapDeserializer.html"title="struct serde::de::value::MapDeserializer">MapDeserializer</a><'de, Self::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter"title="type core::iter::traits::collect::IntoIterator::IntoIter">IntoIter</a>, E></code></h4><divclass='docblock'><p>The type of the deserializer being converted into.</p>
</div><h4id='method.into_deserializer'class="method hidden"><codeid='into_deserializer.v'>fn <ahref='../../serde/de/trait.IntoDeserializer.html#tymethod.into_deserializer'class='fnname'>into_deserializer</a>(self) -> Self::<aclass="type"href="../../serde/de/trait.IntoDeserializer.html#associatedtype.Deserializer"title="type serde::de::IntoDeserializer::Deserializer">Deserializer</a></code><aclass='srclink'href='../../src/indexmap/serde.rs.html#78-80'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Convert this value into a deserializer.</p>
</div><divclass='impl-items'><h4id='method.serialize'class="method hidden"><codeid='serialize.v'>fn <ahref='../../serde/ser/trait.Serialize.html#tymethod.serialize'class='fnname'>serialize</a><T>(&self, serializer: T) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T::<aclass="type"href="../../serde/ser/trait.Serializer.html#associatedtype.Ok"title="type serde::ser::Serializer::Ok">Ok</a>, T::<aclass="type"href="../../serde/ser/trait.Serializer.html#associatedtype.Error"title="type serde::ser::Serializer::Error">Error</a>><spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../../serde/ser/trait.Serializer.html"title="trait serde::ser::Serializer">Serializer</a>, </span></code><aclass='srclink'href='../../src/indexmap/serde.rs.html#20-28'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Serialize this value into the given Serde serializer. <ahref="../../serde/ser/trait.Serialize.html#tymethod.serialize">Read more</a></p>
</div><divclass='impl-items'><h4id='method.deserialize'class="method hidden"><codeid='deserialize.v'>fn <ahref='../../serde/de/trait.Deserialize.html#tymethod.deserialize'class='fnname'>deserialize</a><D>(deserializer: D) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><Self, D::<aclass="type"href="../../serde/de/trait.Deserializer.html#associatedtype.Error"title="type serde::de::Deserializer::Error">Error</a>><spanclass="where fmt-newline">where<br> D: <aclass="trait"href="../../serde/de/trait.Deserializer.html"title="trait serde::de::Deserializer">Deserializer</a><'de>, </span></code><aclass='srclink'href='../../src/indexmap/serde.rs.html#63-67'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Deserialize this value from the given Serde deserializer. <ahref="../../serde/de/trait.Deserialize.html#tymethod.deserialize">Read more</a></p>
</div></div><h3id='impl-IntoIterator-3'class='impl'><codeclass='in-band'>impl<I><aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html"title="trait core::iter::traits::collect::IntoIterator">IntoIterator</a> for I <spanclass="where fmt-newline">where<br> I: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>, </span></code><ahref='#impl-IntoIterator-3'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#242-249'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Item-3'class="type"><codeid='Item.t-3'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.Item'class="type">Item</a> = <I as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html"title="trait core::iter::traits::iterator::Iterator">Iterator</a>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/iter/traits/iterator/trait.Iterator.html#associatedtype.Item"title="type core::iter::traits::iterator::Iterator::Item">Item</a></code></h4><divclass='docblock'><p>The type of the elements being iterated over.</p>
</div><h4id='associatedtype.IntoIter-3'class="type"><codeid='IntoIter.t-3'>type <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#associatedtype.IntoIter'class="type">IntoIter</a> = I</code></h4><divclass='docblock'><p>Which kind of iterator are we turning this into?</p>
</div><h4id='method.into_iter-3'class="method hidden"><codeid='into_iter.v-3'>fn <ahref='https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter'class='fnname'>into_iter</a>(self) -> I</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/iter/traits/collect.rs.html#246-248'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates an iterator from a value. <ahref="https://doc.rust-lang.org/nightly/core/iter/traits/collect/trait.IntoIterator.html#tymethod.into_iter">Read more</a></p>
</div></div><h3id='impl-ToOwned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html"title="trait alloc::borrow::ToOwned">ToOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html"title="trait core::clone::Clone">Clone</a>, </span></code><ahref='#impl-ToOwned'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#81-92'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Owned'class="type"><codeid='Owned.t'>type <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#associatedtype.Owned'class="type">Owned</a> = T</code></h4><divclass='docblock'><p>The resulting type after obtaining ownership.</p>
</div><h4id='method.to_owned'class="method hidden"><codeid='to_owned.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned'class='fnname'>to_owned</a>(&self) -> T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#85-87'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Creates owned data from borrowed data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#tymethod.to_owned">Read more</a></p>
</div><h4id='method.clone_into'class="method hidden"><codeid='clone_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into'class='fnname'>clone_into</a>(&self, target: <aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T)</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/alloc/borrow.rs.html#89-91'title='goto source code'>[src]</a></h4><divclass='stability hidden'><divclass='stab unstable'><details><summary><spanclass='emoji'>🔬</span> This is a nightly-only experimental API. (<code>toowned_clone_into</code>)</summary><p>recently added</p>
</details></div></div><divclass='docblock hidden'><p>Uses borrowed data to replace owned data, usually by cloning. <ahref="https://doc.rust-lang.org/nightly/alloc/borrow/trait.ToOwned.html#method.clone_into">Read more</a></p>
</div></div><h3id='impl-TryFrom%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html"title="trait core::convert::Into">Into</a><T>, </span></code><ahref='#impl-TryFrom%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#571-577'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error'class="type"><codeid='Error.t'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error'class="type">Error</a> = <aclass="enum"href="https://doc.rust-lang.org/nightly/core/convert/enum.Infallible.html"title="enum core::convert::Infallible">Infallible</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_from'class="method hidden"><codeid='try_from.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#tymethod.try_from'class='fnname'>try_from</a>(value: U) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><T, <T as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><U>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#574-576'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-TryInto%3CU%3E'class='impl'><codeclass='in-band'>impl<T, U><aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html"title="trait core::convert::TryInto">TryInto</a><U> for T <spanclass="where fmt-newline">where<br> U: <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>, </span></code><ahref='#impl-TryInto%3CU%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#559-566'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='associatedtype.Error-1'class="type"><codeid='Error.t-1'>type <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#associatedtype.Error'class="type">Error</a> = <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a></code></h4><divclass='docblock'><p>The type returned in the event of a conversion error.</p>
</div><h4id='method.try_into'class="method hidden"><codeid='try_into.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/convert/trait.TryInto.html#tymethod.try_into'class='fnname'>try_into</a>(self) -><aclass="enum"href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html"title="enum core::result::Result">Result</a><U, <U as <aclass="trait"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html"title="trait core::convert::TryFrom">TryFrom</a><T>>::<aclass="type"href="https://doc.rust-lang.org/nightly/core/convert/trait.TryFrom.html#associatedtype.Error"title="type core::convert::TryFrom::Error">Error</a>></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/convert.rs.html#563-565'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Performs the conversion.</p>
</div></div><h3id='impl-BorrowMut%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html"title="trait core::borrow::BorrowMut">BorrowMut</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-BorrowMut%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#218-220'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow_mut'class="method hidden"><codeid='borrow_mut.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut'class='fnname'>borrow_mut</a>(&mut self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&mut </a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#219'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Mutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.BorrowMut.html#tymethod.borrow_mut">Read more</a></p>
</div></div><h3id='impl-Borrow%3CT%3E'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html"title="trait core::borrow::Borrow">Borrow</a><T> for T <spanclass="where fmt-newline">where<br> T: ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Borrow%3CT%3E'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#213-215'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.borrow'class="method hidden"><codeid='borrow.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow'class='fnname'>borrow</a>(&self) -><aclass="primitive"href="https://doc.rust-lang.org/nightly/std/primitive.reference.html">&</a>T</code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/borrow.rs.html#214'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Immutably borrows from an owned value. <ahref="https://doc.rust-lang.org/nightly/core/borrow/trait.Borrow.html#tymethod.borrow">Read more</a></p>
</div></div><h3id='impl-Any'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html"title="trait core::any::Any">Any</a> for T <spanclass="where fmt-newline">where<br> T: 'static + ?<aclass="trait"href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html"title="trait core::marker::Sized">Sized</a>, </span></code><ahref='#impl-Any'class='anchor'></a><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#100-102'title='goto source code'>[src]</a></h3><divclass='impl-items'><h4id='method.type_id'class="method hidden"><codeid='type_id.v'>fn <ahref='https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id'class='fnname'>type_id</a>(&self) -><aclass="struct"href="https://doc.rust-lang.org/nightly/core/any/struct.TypeId.html"title="struct core::any::TypeId">TypeId</a></code><aclass='srclink'href='https://doc.rust-lang.org/nightly/src/core/any.rs.html#101'title='goto source code'>[src]</a></h4><divclass='docblock hidden'><p>Gets the <code>TypeId</code> of <code>self</code>. <ahref="https://doc.rust-lang.org/nightly/core/any/trait.Any.html#tymethod.type_id">Read more</a></p>
</div></div><h3id='impl-DeserializeOwned'class='impl'><codeclass='in-band'>impl<T><aclass="trait"href="../../serde/de/trait.DeserializeOwned.html"title="trait serde::de::DeserializeOwned">DeserializeOwned</a> for T <spanclass="where fmt-newline">where<br> T: <aclass="trait"href="../../serde/de/trait.Deserialize.html"title="trait serde::de::Deserialize">Deserialize</a><'de>, </span></code><ahref='#impl-DeserializeOwned'class='anchor'></a><aclass='srclink'href='../../src/serde/de/mod.rs.html#597'title='goto source code'>[src]</a></h3><divclass='impl-items'></div></div></section><sectionid="search"class="content hidden"></section><sectionclass="footer"></section><asideid="help"class="hidden"><div><h1class="hidden">Help</h1><divclass="shortcuts"><h2>Keyboard Shortcuts</h2><dl><dt><kbd>?</kbd></dt><dd>Show this help dialog</dd><dt><kbd>S</kbd></dt><dd>Focus the search field</dd><dt><kbd>↑</kbd></dt><dd>Move up in search results</dd><dt><kbd>↓</kbd></dt><dd>Move down in search results</dd><dt><kbd>↹</kbd></dt><dd>Switch tab</dd><dt><kbd>⏎</kbd></dt><dd>Go to active search result</dd><dt><kbd>+</kbd></dt><dd>Expand all sections</dd><dt><kbd>-</kbd></dt><dd>Collapse all sections</dd></dl></div><divclass="infos"><h2>Search Tricks</h2><p>Prefix searches with a type followed by a colon (e.g., <code>fn:</code>) to restrict the search to a given type.</p><p>Accepted types are: <code>fn</code>, <code>mod</code>, <code>struct</code>, <code>enum</code>, <code>trait</code>, <code>type</code>, <code>macro</code>, and <code>const</code>.</p><p>Search functions by type signature (e.g., <code>vec -> usize</code> or <code>* -> vec</code>)</p><p>Search multiple things at once by splitting your query with comma (e.g., <code>str,u8</code> or <code>String,struct:Vec,test</code>)</p></div></div></aside><script>window.rootPath="../../";window.currentCrate="indexmap";</script><scriptsrc="../../aliases.js"></script><scriptsrc="../../main.js"></script><scriptdefersrc="../../search-index.js"></script></body></html>