Enum tantivy_query_grammar::Occur[][src]

pub enum Occur {
    Should,
    Must,
    MustNot,
}

Defines whether a term in a query must be present, should be present or must be not present.

Variants

Should

For a given document to be considered for scoring, at least one of the document with the Should or the Must Occur constraint must be within the document.

Must

Document without the term are excluded from the search.

MustNot

Document that contain the term are excluded from the search.

Implementations

impl Occur[src]

pub fn compose(left: Occur, right: Occur) -> Occur[src]

Compose two occur values.

Trait Implementations

impl Clone for Occur[src]

impl Copy for Occur[src]

impl Debug for Occur[src]

impl Display for Occur[src]

impl Eq for Occur[src]

impl Hash for Occur[src]

impl PartialEq<Occur> for Occur[src]

impl StructuralEq for Occur[src]

impl StructuralPartialEq for Occur[src]

Auto Trait Implementations

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> From<T> for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.