[][src]Trait tique::conditional_collector::ConditionForSegment

pub trait ConditionForSegment<T>: Clone {
    type Type: CheckCondition<T>;
    fn for_segment(&self, reader: &SegmentReader) -> Self::Type;
}

A trait that allows defining arbitrary conditions to be checked before considering a matching document for inclusion in the top results.

Associated Types

Loading content...

Required methods

fn for_segment(&self, reader: &SegmentReader) -> Self::Type

Loading content...

Implementations on Foreign Types

impl<T> ConditionForSegment<T> for bool[src]

type Type = bool

impl<T> ConditionForSegment<T> for (T, DocAddress) where
    T: 'static + PartialOrd + Copy
[src]

type Type = Self

Loading content...

Implementors

impl<T, C, F> ConditionForSegment<T> for F where
    F: Clone + Fn(&SegmentReader) -> C,
    C: CheckCondition<T>, 
[src]

type Type = C

Loading content...