Struct tantivy_common::BitSet
source · pub struct BitSet { /* private fields */ }
Implementations§
source§impl BitSet
impl BitSet
sourcepub fn with_max_value(max_value: u32) -> BitSet
pub fn with_max_value(max_value: u32) -> BitSet
Create a new BitSet
that may contain elements
within [0, max_val)
.
sourcepub fn with_max_value_and_full(max_value: u32) -> BitSet
pub fn with_max_value_and_full(max_value: u32) -> BitSet
Create a new BitSet
that may contain elements. Initially all values will be set.
within [0, max_val)
.
sourcepub fn intersect_update(&mut self, other: &ReadOnlyBitSet)
pub fn intersect_update(&mut self, other: &ReadOnlyBitSet)
Intersect with serialized bitset
sourcepub fn first_non_empty_bucket(&self, bucket: u32) -> Option<u32>
pub fn first_non_empty_bucket(&self, bucket: u32) -> Option<u32>
Returns the first non-empty TinySet
associated with a bucket lower
or greater than bucket.
Reminder: the tiny set with the bucket bucket
, represents the
elements from bucket * 64
to (bucket+1) * 64
.
pub fn max_value(&self) -> u32
Trait Implementations§
source§impl<'a> From<&'a BitSet> for ReadOnlyBitSet
impl<'a> From<&'a BitSet> for ReadOnlyBitSet
source§fn from(bitset: &'a BitSet) -> ReadOnlyBitSet
fn from(bitset: &'a BitSet) -> ReadOnlyBitSet
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BitSet
impl RefUnwindSafe for BitSet
impl Send for BitSet
impl Sync for BitSet
impl Unpin for BitSet
impl UnwindSafe for BitSet
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more