blob: ad023148008ab8a06986aba0d27875e975001312 [file] [log] [blame]
<!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="A source of key-value pairs."><meta name="keywords" content="rust, rustlang, rust-lang, Source"><title>Source in measure_time::kv - 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" href="../../normalize.css"><link rel="stylesheet" href="../../rustdoc.css" id="mainThemeStyle"><link rel="stylesheet" href="../../ayu.css" disabled><link rel="stylesheet" href="../../dark.css" disabled><link rel="stylesheet" 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 trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle">&#9776;</button><a class="sidebar-logo" href="../../measure_time/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../measure_time/index.html"><div class="logo-container"><img class="rust-logo" src="../../rust-logo.svg" alt="logo"></div></a><h2 class="location"><a href="#">Source</a></h2><div class="sidebar-elems"><section><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.visit">visit</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.count">count</a></li><li><a href="#method.get">get</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Source-for-%26%27a%20T">&amp;&#39;a T</a></li><li><a href="#impl-Source-for-(K%2C%20V)">(K, V)</a></li><li><a href="#impl-Source-for-BTreeMap%3CK%2C%20V%2C%20Global%3E">BTreeMap&lt;K, V, Global&gt;</a></li><li><a href="#impl-Source-for-Box%3CS%2C%20Global%3E">Box&lt;S, Global&gt;</a></li><li><a href="#impl-Source-for-HashMap%3CK%2C%20V%2C%20S%3E">HashMap&lt;K, V, S&gt;</a></li><li><a href="#impl-Source-for-Option%3CS%3E">Option&lt;S&gt;</a></li><li><a href="#impl-Source-for-Vec%3CS%2C%20Global%3E">Vec&lt;S, Global&gt;</a></li><li><a href="#impl-Source-for-%5BS%5D">[S]</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In measure_time::kv</a></h2></div></nav><main><div class="width-limiter"><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"><a href="../../help.html">?</a></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><section id="main-content" class="content"><div class="main-heading"><h1 class="fqn">Trait <a href="../index.html">measure_time</a>::<wbr><a href="index.html">kv</a>::<wbr><a class="trait" href="#">Source</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></h1><span class="out-of-band"><a class="srclink" href="../../src/log/kv/source.rs.html#19">source</a> · <a id="toggle-all-docs" href="javascript:void(0)" title="collapse all docs">[<span class="inner">&#x2212;</span>]</a></span></div><div class="item-decl"><pre class="rust trait"><code>pub trait Source {
fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;;
fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt; { ... }
<span class="item-spacer"></span> fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize { ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A source of key-value pairs.</p>
<p>The source may be a single pair, a set of pairs, or a filter over a set of pairs.
Use the <a href="trait.Visitor.html"><code>Visitor</code></a> trait to inspect the structured data
in a source.</p>
</div></details><h2 id="required-methods" class="small-section-header">Required Methods<a href="#required-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.visit" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#30">source</a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section></summary><div class="docblock"><p>Visit key-value pairs.</p>
<p>A source doesn’t have to guarantee any ordering or uniqueness of key-value pairs.
If the given visitor returns an error then the source may early-return with it,
even if there are more key-value pairs.</p>
<h5 id="implementation-notes"><a href="#implementation-notes">Implementation notes</a></h5>
<p>A source should yield the same key-value pairs to a subsequent visitor unless
that visitor itself fails.</p>
</div></details></div><h2 id="provided-methods" class="small-section-header">Provided Methods<a href="#provided-methods" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="method.get" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#42">source</a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section></summary><div class="docblock"><p>Get the value for a given key.</p>
<p>If the key appears multiple times in the source then which key is returned
is implementation specific.</p>
<h5 id="implementation-notes-1"><a href="#implementation-notes-1">Implementation notes</a></h5>
<p>A source that can provide a more efficient implementation of this method
should override it.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="method.count" class="method has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#59">source</a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></summary><div class="docblock"><p>Count the number of key-value pairs that can be visited.</p>
<h5 id="implementation-notes-2"><a href="#implementation-notes-2">Implementation notes</a></h5>
<p>A source that knows the number of key-value pairs upfront may provide a more
efficient implementation.</p>
<p>A subsequent call to <code>visit</code> should yield the same number of key-value pairs
to the visitor, unless that visitor fails part way through.</p>
</div></details></div><h2 id="foreign-impls" class="small-section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor"></a></h2><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-Box%3CS%2C%20Global%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#245">source</a><a href="#impl-Source-for-Box%3CS%2C%20Global%3E" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for Box&lt;S, Global&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> + ?Sized,</span></h3></section></summary><div class="impl-items"><section id="method.visit" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#249">source</a><a href="#method.visit" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#253">source</a><a href="#method.get-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#257">source</a><a href="#method.count-1" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-BTreeMap%3CK%2C%20V%2C%20Global%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#310">source</a><a href="#impl-Source-for-BTreeMap%3CK%2C%20V%2C%20Global%3E" class="anchor"></a><h3 class="code-header">impl&lt;K, V&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for BTreeMap&lt;K, V, Global&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="trait.ToKey.html" title="trait measure_time::kv::ToKey">ToKey</a> + Borrow&lt;str&gt; + Ord,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="trait.ToValue.html" title="trait measure_time::kv::ToValue">ToValue</a>,</span></h3></section></summary><div class="impl-items"><section id="method.visit-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#315">source</a><a href="#method.visit-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#322">source</a><a href="#method.get-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#326">source</a><a href="#method.count-2" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-%5BS%5D" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#146">source</a><a href="#impl-Source-for-%5BS%5D" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for [S]<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a>,</span></h3></section></summary><div class="impl-items"><section id="method.visit-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#150">source</a><a href="#method.visit-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#158">source</a><a href="#method.get-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#168">source</a><a href="#method.count-3" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-%26%27a%20T" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#107">source</a><a href="#impl-Source-for-%26%27a%20T" class="anchor"></a><h3 class="code-header">impl&lt;'a, T&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for &amp;'a T<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;T: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> + ?Sized,</span></h3></section></summary><div class="impl-items"><section id="method.visit-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#111">source</a><a href="#method.visit-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#115">source</a><a href="#method.get-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#119">source</a><a href="#method.count-4" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-Option%3CS%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#173">source</a><a href="#impl-Source-for-Option%3CS%3E" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for Option&lt;S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a>,</span></h3></section></summary><div class="impl-items"><section id="method.visit-4" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#177">source</a><a href="#method.visit-4" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#185">source</a><a href="#method.get-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#189">source</a><a href="#method.count-5" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-(K%2C%20V)" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#124">source</a><a href="#impl-Source-for-(K%2C%20V)" class="anchor"></a><h3 class="code-header">impl&lt;K, V&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for (K, V)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="trait.ToKey.html" title="trait measure_time::kv::ToKey">ToKey</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="trait.ToValue.html" title="trait measure_time::kv::ToValue">ToValue</a>,</span></h3></section></summary><div class="impl-items"><section id="method.visit-5" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#129">source</a><a href="#method.visit-5" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#133">source</a><a href="#method.get-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#141">source</a><a href="#method.count-6" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-Vec%3CS%2C%20Global%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#262">source</a><a href="#impl-Source-for-Vec%3CS%2C%20Global%3E" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for Vec&lt;S, Global&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a>,</span></h3></section></summary><div class="impl-items"><section id="method.visit-6" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#266">source</a><a href="#method.visit-6" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#270">source</a><a href="#method.get-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#274">source</a><a href="#method.count-7" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Source-for-HashMap%3CK%2C%20V%2C%20S%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#288">source</a><a href="#impl-Source-for-HashMap%3CK%2C%20V%2C%20S%3E" class="anchor"></a><h3 class="code-header">impl&lt;K, V, S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for HashMap&lt;K, V, S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;K: <a class="trait" href="trait.ToKey.html" title="trait measure_time::kv::ToKey">ToKey</a> + Borrow&lt;str&gt; + Eq + Hash,<br>&nbsp;&nbsp;&nbsp;&nbsp;V: <a class="trait" href="trait.ToValue.html" title="trait measure_time::kv::ToValue">ToValue</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;S: BuildHasher,</span></h3></section></summary><div class="impl-items"><section id="method.visit-7" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#294">source</a><a href="#method.visit-7" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.visit" class="fnname">visit</a>(&amp;'kvs self, visitor: &amp;mut dyn <a class="trait" href="trait.Visitor.html" title="trait measure_time::kv::Visitor">Visitor</a>&lt;'kvs&gt;) -&gt; Result&lt;(), <a class="struct" href="struct.Error.html" title="struct measure_time::kv::Error">Error</a>&gt;</h4></section><section id="method.get-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#301">source</a><a href="#method.get-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.get" class="fnname">get</a>(&amp;'v self, key: <a class="struct" href="struct.Key.html" title="struct measure_time::kv::Key">Key</a>&lt;'_&gt;) -&gt; Option&lt;<a class="struct" href="struct.Value.html" title="struct measure_time::kv::Value">Value</a>&lt;'v&gt;&gt;</h4></section><section id="method.count-8" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#305">source</a><a href="#method.count-8" class="anchor"></a><h4 class="code-header">fn <a href="#method.count" class="fnname">count</a>(&amp;self) -&gt; usize</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><section id="impl-Source-for-AsList%3CS%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#433">source</a><a href="#impl-Source-for-AsList%3CS%3E" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for <a class="struct" href="source/struct.AsList.html" title="struct measure_time::kv::source::AsList">AsList</a>&lt;S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a>,</span></h3></section><section id="impl-Source-for-AsMap%3CS%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/log/kv/source.rs.html#394">source</a><a href="#impl-Source-for-AsMap%3CS%3E" class="anchor"></a><h3 class="code-header">impl&lt;S&gt; <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a> for <a class="struct" href="source/struct.AsMap.html" title="struct measure_time::kv::source::AsMap">AsMap</a>&lt;S&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;S: <a class="trait" href="trait.Source.html" title="trait measure_time::kv::Source">Source</a>,</span></h3></section></div><script src="../../implementors/log/kv/source/trait.Source.js" data-ignore-extern-crates="core,std,alloc,log" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="measure_time" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>