Struct tantivy::query::EmptyWeight[][src]

pub struct EmptyWeight;

EmptyWeight is a dummy Weight in which no document matches.

It is useful for tests and handling edge cases.

Trait Implementations

impl Weight for EmptyWeight
[src]

Returns the scorer for the given segment. See Query. Read more

Returns the number documents within the given SegmentReader.

Auto Trait Implementations

impl Send for EmptyWeight

impl Sync for EmptyWeight