Trait tique::conditional_collector::ConditionForSegment [−][src]
pub trait ConditionForSegment<T>: Clone {
type Type: CheckCondition<T>;
fn for_segment(&self, reader: &SegmentReader) -> Self::Type;
}
Expand description
A trait that allows defining arbitrary conditions to be checked before considering a matching document for inclusion in the top results.
Associated Types
type Type: CheckCondition<T>
type Type: CheckCondition<T>
The concrete type of the result from calling for_segment
Required methods
fn for_segment(&self, reader: &SegmentReader) -> Self::Type
fn for_segment(&self, reader: &SegmentReader) -> Self::Type
Creates a Self::Type
instance responsible for checking if
the matching documents in the given segment reader are to
be considered as collection candidates.