Struct tantivy::query::OccurFilter
[−]
[src]
pub struct OccurFilter { /* fields omitted */ }
An OccurFilter
represents a filter over a bitset of
at most 64 elements.
It wraps some simple bitmask to compute the filter rapidly.
Methods
impl OccurFilter
[src]
pub fn accept(&self, ord_set: u64) -> bool
[src]
Returns true if the bitset is matching the occur list.
pub fn new(occurs: &[Occur]) -> OccurFilter
[src]
Builds an OccurFilter
from a list of Occur
.
Trait Implementations
impl Clone for OccurFilter
[src]
fn clone(&self) -> OccurFilter
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more