Struct tantivy_common::BitSet
source · [−]pub struct BitSet { /* private fields */ }
Implementations
sourceimpl 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 to 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
sourceimpl<'a> From<&'a BitSet> for ReadOnlyBitSet
impl<'a> From<&'a BitSet> for ReadOnlyBitSet
sourcefn from(bitset: &'a BitSet) -> ReadOnlyBitSet
fn from(bitset: &'a BitSet) -> ReadOnlyBitSet
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for BitSet
impl Send for BitSet
impl Sync for BitSet
impl Unpin for BitSet
impl UnwindSafe for BitSet
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more