Struct tantivy::fastfield::AliveBitSet
source · [−]pub struct AliveBitSet { /* private fields */ }
Expand description
Set of alive DocId
s.
Implementations
sourceimpl AliveBitSet
impl AliveBitSet
sourcepub fn open(bytes: OwnedBytes) -> AliveBitSet
pub fn open(bytes: OwnedBytes) -> AliveBitSet
Opens an alive bitset given its file.
sourcepub fn is_alive(&self, doc: DocId) -> bool
pub fn is_alive(&self, doc: DocId) -> bool
Returns true if the document is still “alive”. In other words, if it has not been deleted.
sourcepub fn is_deleted(&self, doc: DocId) -> bool
pub fn is_deleted(&self, doc: DocId) -> bool
Returns true if the document has been marked as deleted.
sourcepub fn iter_alive(&self) -> impl Iterator<Item = DocId> + '_
pub fn iter_alive(&self) -> impl Iterator<Item = DocId> + '_
Iterate over the alive doc_ids.
sourcepub fn bitset(&self) -> &ReadOnlyBitSet
pub fn bitset(&self) -> &ReadOnlyBitSet
Get underlying bitset.
sourcepub fn num_alive_docs(&self) -> usize
pub fn num_alive_docs(&self) -> usize
The number of alive documents.
sourcepub fn space_usage(&self) -> ByteCount
pub fn space_usage(&self) -> ByteCount
Summarize total space usage of this bitset.
Trait Implementations
sourceimpl Clone for AliveBitSet
impl Clone for AliveBitSet
sourcefn clone(&self) -> AliveBitSet
fn clone(&self) -> AliveBitSet
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl From<ReadOnlyBitSet> for AliveBitSet
impl From<ReadOnlyBitSet> for AliveBitSet
sourcefn from(bitset: ReadOnlyBitSet) -> AliveBitSet
fn from(bitset: ReadOnlyBitSet) -> AliveBitSet
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for AliveBitSet
impl Send for AliveBitSet
impl Sync for AliveBitSet
impl Unpin for AliveBitSet
impl !UnwindSafe for AliveBitSet
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> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> Pointable for T
impl<T> Pointable for T
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more