[][src]Struct tantivy::query::Exclude

pub struct Exclude<TDocSet, TDocSetExclude> { /* fields omitted */ }

Filters a given DocSet by removing the docs from a given DocSet.

The excluding docset has no impact on scoring.

Methods

impl<TDocSet, TDocSetExclude> Exclude<TDocSet, TDocSetExclude> where
    TDocSetExclude: DocSet
[src]

pub fn new(
    underlying_docset: TDocSet,
    excluding_docset: TDocSetExclude
) -> Exclude<TDocSet, TDocSetExclude>
[src]

Creates a new ExcludeScorer

Trait Implementations

impl<TDocSet, TDocSetExclude> DocSet for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: DocSet,
    TDocSetExclude: DocSet
[src]

fn size_hint(&self) -> u32[src]

.size_hint() directly returns the size of the underlying docset without taking in account the fact that docs might be deleted.

impl<TScorer, TDocSetExclude> Scorer for Exclude<TScorer, TDocSetExclude> where
    TScorer: Scorer,
    TDocSetExclude: DocSet + 'static, 
[src]

Auto Trait Implementations

impl<TDocSet, TDocSetExclude> RefUnwindSafe for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: RefUnwindSafe,
    TDocSetExclude: RefUnwindSafe

impl<TDocSet, TDocSetExclude> Send for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: Send,
    TDocSetExclude: Send

impl<TDocSet, TDocSetExclude> Sync for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: Sync,
    TDocSetExclude: Sync

impl<TDocSet, TDocSetExclude> Unpin for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: Unpin,
    TDocSetExclude: Unpin

impl<TDocSet, TDocSetExclude> UnwindSafe for Exclude<TDocSet, TDocSetExclude> where
    TDocSet: UnwindSafe,
    TDocSetExclude: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> DowncastSync for T where
    T: Send + Sync + Any
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T> Fruit for T where
    T: Send + Downcast
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,