pub struct Config {
pub prefilter: bool,
pub max_typos: Option<u16>,
pub sort: bool,
pub scoring: Scoring,
}Fields§
§prefilter: boolMay perform prefiltering, depending on haystack length and max number of typos, which drastically improves performance when most of the haystack does not match Automatically disabled when max_typos = None
max_typos: Option<u16>The maximum number of characters missing from the needle, before an item in the haystack is filtered out
sort: boolSort the results by score (descending)
scoring: ScoringControls the scoring used by the smith waterman algorithm. You may tweak these pay close attention to the documentation for each property, as small changes can lead to poor matching.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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