blob: 7e6a004f7bd02565674521e4d98622b5ea09227a [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="Collectors are in charge of collecting and retaining relevant information from the document found and scored by the query."><meta name="keywords" content="rust, rustlang, rust-lang, Collector"><title>Collector in tantivy::collector - 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="../../tantivy/index.html"><div class="logo-container"><img src="http://fulmicoton.com/tantivy-logo/tantivy-logo.png" alt="logo"></div></a><h2></h2></nav><nav class="sidebar"><a class="sidebar-logo" href="../../tantivy/index.html"><div class="logo-container">
<img src="http://fulmicoton.com/tantivy-logo/tantivy-logo.png" alt="logo"></div></a><h2 class="location"><a href="#">Collector</a></h2><div class="sidebar-elems"><section><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Child">Child</a></li><li><a href="#associatedtype.Fruit">Fruit</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.for_segment">for_segment</a></li><li><a href="#tymethod.merge_fruits">merge_fruits</a></li><li><a href="#tymethod.requires_scoring">requires_scoring</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.collect_segment">collect_segment</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Collector-for-(Left%2C%20Right)">(Left, Right)</a></li><li><a href="#impl-Collector-for-(One%2C%20Two%2C%20Three)">(One, Two, Three)</a></li><li><a href="#impl-Collector-for-(One%2C%20Two%2C%20Three%2C%20Four)">(One, Two, Three, Four)</a></li><li><a href="#impl-Collector-for-Option%3CTCollector%3E">Option&lt;TCollector&gt;</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><h2><a href="index.html">In tantivy::collector</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">tantivy</a>::<wbr><a href="index.html">collector</a>::<wbr><a class="trait" href="#">Collector</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/tantivy/collector/mod.rs.html#140-204">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 Collector: Sync + Send {
type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a>: <a class="trait" href="trait.Fruit.html" title="trait tantivy::collector::Fruit">Fruit</a>;
type <a href="#associatedtype.Child" class="associatedtype">Child</a>: <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>;
fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: <a class="type" href="../type.SegmentOrdinal.html" title="type tantivy::SegmentOrdinal">SegmentOrdinal</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;;
<span class="item-spacer"></span> fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool;
<span class="item-spacer"></span> fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;segment_fruits: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;;
fn <a href="#method.collect_segment" class="fnname">collect_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;weight: &amp;dyn <a class="trait" href="../query/trait.Weight.html" title="trait tantivy::query::Weight">Weight</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;segment_ord: u32,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;reader: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>&nbsp;&nbsp;&nbsp;&nbsp;) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt; { ... }
}</code></pre></div><details class="rustdoc-toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Collectors are in charge of collecting and retaining relevant
information from the document found and scored by the query.</p>
<p>For instance,</p>
<ul>
<li>keeping track of the top 10 best documents</li>
<li>computing a breakdown over a fast field</li>
<li>computing the number of documents matching the query</li>
</ul>
<p>Our search index is in fact a collection of segments, so
a <code>Collector</code> trait is actually more of a factory to instance
<code>SegmentCollector</code>s for each segments.</p>
<p>The collection logic itself is in the <code>SegmentCollector</code>.</p>
<p>Segments are not guaranteed to be visited in any specific order.</p>
</div></details><h2 id="required-associated-types" class="small-section-header">Required Associated Types<a href="#required-associated-types" class="anchor"></a></h2><div class="methods"><details class="rustdoc-toggle method-toggle" open><summary><section id="associatedtype.Fruit" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#143">source</a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a>: <a class="trait" href="trait.Fruit.html" title="trait tantivy::collector::Fruit">Fruit</a></h4></section></summary><div class="docblock"><p><code>Fruit</code> is the type for the result of our collection.
e.g. <code>usize</code> for the <code>Count</code> collector.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="associatedtype.Child" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#146">source</a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a>: <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a></h4></section></summary><div class="docblock"><p>Type of the <code>SegmentCollector</code> associated with this collector.</p>
</div></details></div><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.for_segment" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#150-154">source</a><h4 class="code-header">fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: <a class="type" href="../type.SegmentOrdinal.html" title="type tantivy::SegmentOrdinal">SegmentOrdinal</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section></summary><div class="docblock"><p><code>set_segment</code> is called before beginning to enumerate
on this segment.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.requires_scoring" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#157">source</a><h4 class="code-header">fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool</h4></section></summary><div class="docblock"><p>Returns true iff the collector requires to compute scores for documents.</p>
</div></details><details class="rustdoc-toggle method-toggle" open><summary><section id="tymethod.merge_fruits" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#161-164">source</a><h4 class="code-header">fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_fruits: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;</h4></section></summary><div class="docblock"><p>Combines the fruit associated with the collection of each segments
into one fruit.</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.collect_segment" class="method has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#167-203">source</a><h4 class="code-header">fn <a href="#method.collect_segment" class="fnname">collect_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;weight: &amp;dyn <a class="trait" href="../query/trait.Weight.html" title="trait tantivy::query::Weight">Weight</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_ord: u32,<br>&nbsp;&nbsp;&nbsp;&nbsp;reader: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;</h4></section></summary><div class="docblock"><p>Created a segment collector and</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-Collector-for-Option%3CTCollector%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#220-259">source</a><a href="#impl-Collector-for-Option%3CTCollector%3E" class="anchor"></a><h3 class="code-header">impl&lt;TCollector:&nbsp;<a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for Option&lt;TCollector&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = Option&lt;&lt;TCollector as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;</h4></section><section id="associatedtype.Child-1" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-1" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = Option&lt;&lt;TCollector as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section><section id="method.for_segment" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#225-236">source</a><a href="#method.for_segment" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: <a class="type" href="../type.SegmentOrdinal.html" title="type tantivy::SegmentOrdinal">SegmentOrdinal</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section><section id="method.requires_scoring" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#238-242">source</a><a href="#method.requires_scoring" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool</h4></section><section id="method.merge_fruits" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#244-258">source</a><a href="#method.merge_fruits" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_fruits: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-(Left%2C%20Right)" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#281-318">source</a><a href="#impl-Collector-for-(Left%2C%20Right)" class="anchor"></a><h3 class="code-header">impl&lt;Left, Right&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for (Left, Right)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;Left: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Right: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = (&lt;Left as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Right as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>)</h4></section><section id="associatedtype.Child-2" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-2" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = (&lt;Left as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Right as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>)</h4></section><section id="method.for_segment-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#289-297">source</a><a href="#method.for_segment-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: u32,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section><section id="method.requires_scoring-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#299-301">source</a><a href="#method.requires_scoring-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool</h4></section><section id="method.merge_fruits-1" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#303-317">source</a><a href="#method.merge_fruits-1" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_fruits: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;(Left::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, Right::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>)&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-(One%2C%20Two%2C%20Three)" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#339-381">source</a><a href="#impl-Collector-for-(One%2C%20Two%2C%20Three)" class="anchor"></a><h3 class="code-header">impl&lt;One, Two, Three&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for (One, Two, Three)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;One: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Two: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Three: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = (&lt;One as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Two as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Three as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>)</h4></section><section id="associatedtype.Child-3" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-3" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = (&lt;One as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Two as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Three as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>)</h4></section><section id="method.for_segment-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#348-357">source</a><a href="#method.for_segment-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: u32,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section><section id="method.requires_scoring-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#359-361">source</a><a href="#method.requires_scoring-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool</h4></section><section id="method.merge_fruits-2" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#363-380">source</a><a href="#method.merge_fruits-2" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;children: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-(One%2C%20Two%2C%20Three%2C%20Four)" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#404-454">source</a><a href="#impl-Collector-for-(One%2C%20Two%2C%20Three%2C%20Four)" class="anchor"></a><h3 class="code-header">impl&lt;One, Two, Three, Four&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for (One, Two, Three, Four)<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;One: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Two: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Three: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,<br>&nbsp;&nbsp;&nbsp;&nbsp;Four: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = (&lt;One as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Two as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Three as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>, &lt;Four as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>)</h4></section><section id="associatedtype.Child-4" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-4" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = (&lt;One as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Two as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Three as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, &lt;Four as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>)</h4></section><section id="method.for_segment-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#414-424">source</a><a href="#method.for_segment-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.for_segment" class="fnname">for_segment</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment_local_id: u32,<br>&nbsp;&nbsp;&nbsp;&nbsp;segment: &amp;<a class="struct" href="../struct.SegmentReader.html" title="struct tantivy::SegmentReader">SegmentReader</a><br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>&gt;</h4></section><section id="method.requires_scoring-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#426-431">source</a><a href="#method.requires_scoring-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.requires_scoring" class="fnname">requires_scoring</a>(&amp;self) -&gt; bool</h4></section><section id="method.merge_fruits-3" class="method trait-impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/mod.rs.html#433-453">source</a><a href="#method.merge_fruits-3" class="anchor"></a><h4 class="code-header">fn <a href="#tymethod.merge_fruits" class="fnname">merge_fruits</a>(<br>&nbsp;&nbsp;&nbsp;&nbsp;&amp;self,<br>&nbsp;&nbsp;&nbsp;&nbsp;children: Vec&lt;&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a> as <a class="trait" href="trait.SegmentCollector.html" title="trait tantivy::collector::SegmentCollector">SegmentCollector</a>&gt;::<a class="associatedtype" href="trait.SegmentCollector.html#associatedtype.Fruit" title="type tantivy::collector::SegmentCollector::Fruit">Fruit</a>&gt;<br>) -&gt; <a class="type" href="../type.Result.html" title="type tantivy::Result">Result</a>&lt;Self::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a>&gt;</h4></section></div></details><h2 id="implementors" class="small-section-header">Implementors<a href="#implementors" class="anchor"></a></h2><div id="implementors-list"><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-AggregationCollector" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/aggregation/collector.rs.html#93-121">source</a><a href="#impl-Collector-for-AggregationCollector" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="../aggregation/struct.AggregationCollector.html" title="struct tantivy::aggregation::AggregationCollector">AggregationCollector</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = <a class="struct" href="../aggregation/agg_result/struct.AggregationResults.html" title="struct tantivy::aggregation::agg_result::AggregationResults">AggregationResults</a></h4></section><section id="associatedtype.Child-5" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-5" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = <a class="struct" href="../aggregation/struct.AggregationSegmentCollector.html" title="struct tantivy::aggregation::AggregationSegmentCollector">AggregationSegmentCollector</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-DistributedAggregationCollector" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/aggregation/collector.rs.html#64-91">source</a><a href="#impl-Collector-for-DistributedAggregationCollector" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="../aggregation/struct.DistributedAggregationCollector.html" title="struct tantivy::aggregation::DistributedAggregationCollector">DistributedAggregationCollector</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = <a class="struct" href="../aggregation/intermediate_agg_result/struct.IntermediateAggregationResults.html" title="struct tantivy::aggregation::intermediate_agg_result::IntermediateAggregationResults">IntermediateAggregationResults</a></h4></section><section id="associatedtype.Child-6" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-6" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = <a class="struct" href="../aggregation/struct.AggregationSegmentCollector.html" title="struct tantivy::aggregation::AggregationSegmentCollector">AggregationSegmentCollector</a></h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-Count" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/count_collector.rs.html#38-58">source</a><a href="#impl-Collector-for-Count" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.Count.html" title="struct tantivy::collector::Count">Count</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = usize</h4></section><section id="associatedtype.Child-7" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-7" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = SegmentCountCollector</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-DocSetCollector" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/docset_collector.rs.html#11-43">source</a><a href="#impl-Collector-for-DocSetCollector" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.DocSetCollector.html" title="struct tantivy::collector::DocSetCollector">DocSetCollector</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = HashSet&lt;<a class="struct" href="../struct.DocAddress.html" title="struct tantivy::DocAddress">DocAddress</a>, RandomState&gt;</h4></section><section id="associatedtype.Child-8" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-8" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = DocSetChildCollector</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-FacetCollector" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/facet_collector.rs.html#252-331">source</a><a href="#impl-Collector-for-FacetCollector" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.FacetCollector.html" title="struct tantivy::collector::FacetCollector">FacetCollector</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = <a class="struct" href="struct.FacetCounts.html" title="struct tantivy::collector::FacetCounts">FacetCounts</a></h4></section><section id="associatedtype.Child-9" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-9" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = FacetSegmentCollector</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-HistogramCollector" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/histogram_collector.rs.html#106-133">source</a><a href="#impl-Collector-for-HistogramCollector" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.HistogramCollector.html" title="struct tantivy::collector::HistogramCollector">HistogramCollector</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = Vec&lt;u64, Global&gt;</h4></section><section id="associatedtype.Child-10" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-10" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = SegmentHistogramCollector</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-TopDocs" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/top_score_collector.rs.html#604-694">source</a><a href="#impl-Collector-for-TopDocs" class="anchor"></a><h3 class="code-header">impl <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.TopDocs.html" title="struct tantivy::collector::TopDocs">TopDocs</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-11" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = Vec&lt;(f32, <a class="struct" href="../struct.DocAddress.html" title="struct tantivy::DocAddress">DocAddress</a>), Global&gt;</h4></section><section id="associatedtype.Child-11" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-11" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = TopScoreSegmentCollector</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-MultiCollector%3C%27a%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/multi_collector.rs.html#177-222">source</a><a href="#impl-Collector-for-MultiCollector%3C%27a%3E" class="anchor"></a><h3 class="code-header">impl&lt;'a&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.MultiCollector.html" title="struct tantivy::collector::MultiCollector">MultiCollector</a>&lt;'a&gt;</h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-12" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = <a class="struct" href="struct.MultiFruit.html" title="struct tantivy::collector::MultiFruit">MultiFruit</a></h4></section><section id="associatedtype.Child-12" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-12" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = MultiCollectorChild</h4></section></div></details><details class="rustdoc-toggle implementors-toggle"><summary><section id="impl-Collector-for-FilterCollector%3CTCollector%2C%20TPredicate%2C%20TPredicateValue%3E" class="impl has-srclink"><a class="srclink rightside" href="../../src/tantivy/collector/filter_collector_wrapper.rs.html#94-157">source</a><a href="#impl-Collector-for-FilterCollector%3CTCollector%2C%20TPredicate%2C%20TPredicateValue%3E" class="anchor"></a><h3 class="code-header">impl&lt;TCollector, TPredicate, TPredicateValue:&nbsp;<a class="trait" href="../fastfield/trait.FastValue.html" title="trait tantivy::fastfield::FastValue">FastValue</a>&gt; <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> for <a class="struct" href="struct.FilterCollector.html" title="struct tantivy::collector::FilterCollector">FilterCollector</a>&lt;TCollector, TPredicate, TPredicateValue&gt;<span class="where fmt-newline">where<br>&nbsp;&nbsp;&nbsp;&nbsp;TCollector: <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a> + Send + Sync,<br>&nbsp;&nbsp;&nbsp;&nbsp;TPredicate: 'static + Fn(TPredicateValue) -&gt; bool + Send + Sync + Clone,<br>&nbsp;&nbsp;&nbsp;&nbsp;TPredicateValue: <a class="trait" href="../fastfield/trait.FastValue.html" title="trait tantivy::fastfield::FastValue">FastValue</a>,</span></h3></section></summary><div class="impl-items"><section id="associatedtype.Fruit-13" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Fruit-13" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Fruit" class="associatedtype">Fruit</a> = &lt;TCollector as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Fruit" title="type tantivy::collector::Collector::Fruit">Fruit</a></h4></section><section id="associatedtype.Child-13" class="associatedtype trait-impl has-srclink"><a href="#associatedtype.Child-13" class="anchor"></a><h4 class="code-header">type <a href="#associatedtype.Child" class="associatedtype">Child</a> = FilterSegmentCollector&lt;&lt;TCollector as <a class="trait" href="trait.Collector.html" title="trait tantivy::collector::Collector">Collector</a>&gt;::<a class="associatedtype" href="trait.Collector.html#associatedtype.Child" title="type tantivy::collector::Collector::Child">Child</a>, TPredicate, TPredicateValue&gt;</h4></section></div></details></div><script src="../../implementors/tantivy/collector/trait.Collector.js" data-ignore-extern-crates="core" async></script></section></div></main><div id="rustdoc-vars" data-root-path="../../" data-current-crate="tantivy" data-themes="ayu,dark,light" data-resource-suffix="" data-rustdoc-version="1.66.0-nightly (5c8bff74b 2022-10-21)" ></div></body></html>