pub enum TrigramPlan {
Narrow {
arms: Vec<Vec<[u8; 3]>>,
},
FullScan,
}Expand description
Trigram-based narrowing plan, or fall back to scanning the whole corpus.
Variants§
Implementations§
Source§impl TrigramPlan
impl TrigramPlan
Sourcepub fn for_patterns(patterns: &[String], opts: &SearchOptions) -> Self
pub fn for_patterns(patterns: &[String], opts: &SearchOptions) -> Self
Build a plan from user patterns (OR across -e patterns).
Trait Implementations§
Source§impl Clone for TrigramPlan
impl Clone for TrigramPlan
Source§fn clone(&self) -> TrigramPlan
fn clone(&self) -> TrigramPlan
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrigramPlan
impl Debug for TrigramPlan
Source§impl PartialEq for TrigramPlan
impl PartialEq for TrigramPlan
impl Eq for TrigramPlan
impl StructuralPartialEq for TrigramPlan
Auto Trait Implementations§
impl Freeze for TrigramPlan
impl RefUnwindSafe for TrigramPlan
impl Send for TrigramPlan
impl Sync for TrigramPlan
impl Unpin for TrigramPlan
impl UnsafeUnpin for TrigramPlan
impl UnwindSafe for TrigramPlan
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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