pub struct EmptyDocSet;Expand description
DocSet that is always empty.
Trait Implementations§
Source§impl DocSet for EmptyDocSet
impl DocSet for EmptyDocSet
Source§fn doc(&self) -> DocId
fn doc(&self) -> DocId
Current document ID, or
TERMINATED if exhausted.Source§fn advance(&mut self) -> DocId
fn advance(&mut self) -> DocId
Advance to the next document. Returns the new doc ID or
TERMINATED.Source§fn seek(&mut self, _target: DocId) -> DocId
fn seek(&mut self, _target: DocId) -> DocId
Seek to the first document >=
target. Returns doc ID or TERMINATED.Source§fn supports_doc_batches(&self) -> bool
fn supports_doc_batches(&self) -> bool
Whether compact membership batches amortize this cursor’s work.
Source§fn fill_doc_batch(&mut self, docs: &mut DocBatch) -> usize
fn fill_doc_batch(&mut self, docs: &mut DocBatch) -> usize
Consume up to 128 exact sorted matches starting at doc(), leaving
the cursor on the first unconsumed match. Zero means exhausted.
Source§fn retain_doc_batch(&mut self, docs: &mut DocBatch, len: usize) -> usize
fn retain_doc_batch(&mut self, docs: &mut DocBatch, len: usize) -> usize
Retain matches from the sorted unique prefix docs[..len]. The
cursor remains at or beyond the last probe; earlier IDs stay consumed.
Source§fn supports_doc_windows(&self) -> bool
fn supports_doc_windows(&self) -> bool
Whether this cursor benefits from bounded score-free membership batches.
Source§fn fill_doc_window(&mut self, base: DocId, bits: &mut DocWindow)
fn fill_doc_window(&mut self, base: DocId, bits: &mut DocWindow)
Consume exact matches in
[base, base + DOC_WINDOW_SIZE), replacing
bits, and leave the cursor on its first match at or after the end.
Calls are forward-only; previously consumed documents stay consumed.Auto Trait Implementations§
impl Freeze for EmptyDocSet
impl RefUnwindSafe for EmptyDocSet
impl Send for EmptyDocSet
impl Sync for EmptyDocSet
impl Unpin for EmptyDocSet
impl UnsafeUnpin for EmptyDocSet
impl UnwindSafe for EmptyDocSet
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more