<!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="API documentation for the Rust `OrderedMapIterator` trait in crate `ordered_iter`.">
<meta name="keywords" content="rust, rustlang, rust-lang, OrderedMapIterator">
<title>ordered_iter::OrderedMapIterator - Rust</title>
<link rel="stylesheet" type="text/css" href="../rustdoc.css">
<link rel="stylesheet" type="text/css" href="../main.css">
</head>
<body class="rustdoc">
<!--[if lte IE 8]>
<div class="warning">
This old browser is unsupported and will most likely display funky
things.
</div>
<![endif]-->
<nav class="sidebar">
<p class='location'><a href='index.html'>ordered_iter</a></p><script>window.sidebarCurrent = {name: 'OrderedMapIterator', ty: 'trait', relpath: ''};</script><script defer src="sidebar-items.js"></script>
</nav>
<nav class="sub">
<form class="search-form js-only">
<div class="search-container">
<input class="search-input" name="search"
autocomplete="off"
placeholder="Click or press ‘S’ to search, ‘?’ for more options…"
type="search">
</div>
</form>
</nav>
<section id='main' class="content trait">
<h1 class='fqn'><span class='in-band'>Trait <a href='index.html'>ordered_iter</a>::<wbr><a class='trait' href=''>OrderedMapIterator</a></span><span class='out-of-band'><span id='render-detail'>
<a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">
[<span class='inner'>−</span>]
</a>
</span><a id='src-10' class='srclink' href='../src/ordered_iter/lib.rs.html#19-55' title='goto source code'>[src]</a></span></h1>
<pre class='rust trait'>pub trait OrderedMapIterator: <a class='trait' href='https://doc.rust-lang.org/nightly/core/iter/trait.Iterator.html' title='core::iter::Iterator'>Iterator</a><Item=<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>(</a>Self::Key, Self::Val<a class='primitive' href='https://doc.rust-lang.org/nightly/std/primitive.tuple.html'>)</a>> + <a class='trait' href='https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html' title='core::marker::Sized'>Sized</a> {
type <a href='#associatedtype.Key' class='type'>Key</a>;
type <a href='#associatedtype.Val' class='type'>Val</a>;
fn <a href='#method.inner_join_map' class='fnname'>inner_join_map</a><I>(self, map: I) -> <a class='struct' href='../ordered_iter/struct.InnerJoinMap.html' title='ordered_iter::InnerJoinMap'>InnerJoinMap</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a><Key=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span> { ... }
fn <a href='#method.inner_join_set' class='fnname'>inner_join_set</a><I>(self, set: I) -> <a class='struct' href='../ordered_iter/struct.InnerJoinMapSet.html' title='ordered_iter::InnerJoinMapSet'>InnerJoinMapSet</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedSetIterator.html' title='ordered_iter::OrderedSetIterator'>OrderedSetIterator</a><Item=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span> { ... }
fn <a href='#method.outer_join' class='fnname'>outer_join</a><I>(self, other: I) -> <a class='struct' href='../ordered_iter/struct.OuterJoin.html' title='ordered_iter::OuterJoin'>OuterJoin</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a><Key=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span> { ... }
}</pre><div class='docblock'><p>Allows an iterator to do an inner join with another
iterator to combine their values or filter based on their keys.</p>
<p>This trait is applied to an iterator over a map-like structure.</p>
</div>
<h2 id='associated-types'>Associated Types</h2>
<div class='methods'>
<h3 id='associatedtype.Key' class='method stab '><code>type <a href='#associatedtype.Key' class='type'>Key</a></code></h3><h3 id='associatedtype.Val' class='method stab '><code>type <a href='#associatedtype.Val' class='type'>Val</a></code></h3></div>
<h2 id='provided-methods'>Provided Methods</h2>
<div class='methods'>
<h3 id='method.inner_join_map' class='method stab '><code>fn <a href='#method.inner_join_map' class='fnname'>inner_join_map</a><I>(self, map: I) -> <a class='struct' href='../ordered_iter/struct.InnerJoinMap.html' title='ordered_iter::InnerJoinMap'>InnerJoinMap</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a><Key=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span></code></h3><div class='docblock'><p>Joins two ordered maps together.</p>
</div><h3 id='method.inner_join_set' class='method stab '><code>fn <a href='#method.inner_join_set' class='fnname'>inner_join_set</a><I>(self, set: I) -> <a class='struct' href='../ordered_iter/struct.InnerJoinMapSet.html' title='ordered_iter::InnerJoinMapSet'>InnerJoinMapSet</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedSetIterator.html' title='ordered_iter::OrderedSetIterator'>OrderedSetIterator</a><Item=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span></code></h3><div class='docblock'><p>Filters an ordered map with an ordered set.</p>
</div><h3 id='method.outer_join' class='method stab '><code>fn <a href='#method.outer_join' class='fnname'>outer_join</a><I>(self, other: I) -> <a class='struct' href='../ordered_iter/struct.OuterJoin.html' title='ordered_iter::OuterJoin'>OuterJoin</a><Self, I> <span class='where'>where I: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a><Key=Self::<a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>Key</a>></span></code></h3><div class='docblock'><p>Joins an ordered iterator with another ordered iterator.</p>
<p>The new iterator will return a key-value pair for every key in
either iterator. If a key is present in both iterators, they
will be returned together (two values). If a value is in <code>other</code>
but not <code>self</code>, it will be returned without the value in
<code>self</code>. If the value is in <code>self</code> but not <code>other</code>,
it will be returned without the value from <code>other</code>.</p>
</div></div>
<h2 id='implementors'>Implementors</h2>
<ul class='item-list' id='implementors-list'>
<li><code>impl<'a, K: <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a>, V> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='https://doc.rust-lang.org/nightly/collections/btree/map/struct.Iter.html' title='collections::btree::map::Iter'>Iter</a><'a, K, V></code></li>
<li><code>impl<K: <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a>, V> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='https://doc.rust-lang.org/nightly/collections/btree/map/struct.IntoIter.html' title='collections::btree::map::IntoIter'>IntoIter</a><K, V></code></li>
<li><code>impl<'a, K: <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a>, V> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='https://doc.rust-lang.org/nightly/collections/btree/map/struct.IterMut.html' title='collections::btree::map::IterMut'>IterMut</a><'a, K, V></code></li>
<li><code>impl<'a, V> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='../vec_map/struct.Iter.html' title='vec_map::Iter'>Iter</a><'a, V></code></li>
<li><code>impl<A, B> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='../ordered_iter/struct.InnerJoinMap.html' title='ordered_iter::InnerJoinMap'>InnerJoinMap</a><A, B> <span class='where'>where A: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a>, B: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a><Key=A::Key>, A::Key: <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a></span></code></li>
<li><code>impl<A, B> <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a> for <a class='struct' href='../ordered_iter/struct.InnerJoinMapSet.html' title='ordered_iter::InnerJoinMapSet'>InnerJoinMapSet</a><A, B> <span class='where'>where A: <a class='trait' href='../ordered_iter/trait.OrderedMapIterator.html' title='ordered_iter::OrderedMapIterator'>OrderedMapIterator</a>, B: <a class='trait' href='../ordered_iter/trait.OrderedSetIterator.html' title='ordered_iter::OrderedSetIterator'>OrderedSetIterator</a><Item=A::Key>, A::Key: <a class='trait' href='https://doc.rust-lang.org/nightly/core/cmp/trait.Ord.html' title='core::cmp::Ord'>Ord</a></span></code></li>
</ul><script type="text/javascript" async
src="../implementors/ordered_iter/trait.OrderedMapIterator.js">
</script></section>
<section id='search' class="content hidden"></section>
<section class="footer"></section>
<aside id="help" class="hidden">
<div>
<h1 class="hidden">Help</h1>
<div class="shortcuts">
<h2>Keyboard Shortcuts</h2>
<dl>
<dt>?</dt>
<dd>Show this help dialog</dd>
<dt>S</dt>
<dd>Focus the search field</dd>
<dt>⇤</dt>
<dd>Move up in search results</dd>
<dt>⇥</dt>
<dd>Move down in search results</dd>
<dt>⏎</dt>
<dd>Go to active search result</dd>
</dl>
</div>
<div class="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>
</div>
</div>
</aside>
<script>
window.rootPath = "../";
window.currentCrate = "ordered_iter";
window.playgroundUrl = "";
</script>
<script src="../jquery.js"></script>
<script src="../main.js"></script>
<script defer src="../search-index.js"></script>
</body>
</html>