pub struct FuzzyOptions {
pub min_similarity: f64,
pub algorithm: Algorithm,
}Expand description
Options for fuzzy repair
Fields§
§min_similarity: f64Minimum similarity threshold (0.0 to 1.0)
Values below this threshold will not be corrected. Default: 0.7
algorithm: AlgorithmAlgorithm to use for similarity calculation
Default: JaroWinkler (best for typos)
Implementations§
Source§impl FuzzyOptions
impl FuzzyOptions
Sourcepub fn with_min_similarity(self, min_similarity: f64) -> FuzzyOptions
pub fn with_min_similarity(self, min_similarity: f64) -> FuzzyOptions
Create options with a custom minimum similarity threshold
Sourcepub fn with_algorithm(self, algorithm: Algorithm) -> FuzzyOptions
pub fn with_algorithm(self, algorithm: Algorithm) -> FuzzyOptions
Create options with a custom algorithm
Trait Implementations§
Source§impl Clone for FuzzyOptions
impl Clone for FuzzyOptions
Source§fn clone(&self) -> FuzzyOptions
fn clone(&self) -> FuzzyOptions
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 FuzzyOptions
impl Debug for FuzzyOptions
Source§impl Default for FuzzyOptions
impl Default for FuzzyOptions
Source§fn default() -> FuzzyOptions
fn default() -> FuzzyOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FuzzyOptions
impl RefUnwindSafe for FuzzyOptions
impl Send for FuzzyOptions
impl Sync for FuzzyOptions
impl Unpin for FuzzyOptions
impl UnwindSafe for FuzzyOptions
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