pub struct QueryPlanner<'a> { /* private fields */ }Expand description
Plans candidate selection by combining indexes and a lazy base provider.
Implementations§
Source§impl<'a> QueryPlanner<'a>
impl<'a> QueryPlanner<'a>
pub const fn new(spec: QuerySpec<'a>) -> Self
Sourcepub fn candidates(
&self,
indexes: &Indexes,
requirement: CandidateRequirement,
filter: &CandidateFilter,
store_meta: Option<&StoreMeta>,
walk_unindexed: bool,
base: impl FnOnce() -> Result<Vec<Candidate>>,
) -> Result<Vec<Candidate>>
pub fn candidates( &self, indexes: &Indexes, requirement: CandidateRequirement, filter: &CandidateFilter, store_meta: Option<&StoreMeta>, walk_unindexed: bool, base: impl FnOnce() -> Result<Vec<Candidate>>, ) -> Result<Vec<Candidate>>
Resolve candidates using indexes or the lazy base provider.
When walk_unindexed is true and the index narrows candidates, also walk
corpus paths that are not yet present in the current snapshot.
§Errors
Delegates to base when fallback is triggered; returns base errors unchanged.
Auto Trait Implementations§
impl<'a> Freeze for QueryPlanner<'a>
impl<'a> RefUnwindSafe for QueryPlanner<'a>
impl<'a> Send for QueryPlanner<'a>
impl<'a> Sync for QueryPlanner<'a>
impl<'a> Unpin for QueryPlanner<'a>
impl<'a> UnsafeUnpin for QueryPlanner<'a>
impl<'a> UnwindSafe for QueryPlanner<'a>
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
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