pub struct FuzzyNfa { /* private fields */ }Expand description
Optimized NFA-based fuzzy matcher using bit-packed states.
Implementations§
Source§impl FuzzyNfa
impl FuzzyNfa
Sourcepub fn new(
pattern: &str,
edit_limits: EditLimits,
case_insensitive: bool,
) -> Option<Self>
pub fn new( pattern: &str, edit_limits: EditLimits, case_insensitive: bool, ) -> Option<Self>
Create a new optimized fuzzy NFA matcher.
Sourcepub fn find_first(&self, text: &str, threshold: f32) -> Option<DamLevMatch>
pub fn find_first(&self, text: &str, threshold: f32) -> Option<DamLevMatch>
Find first match using optimized NFA.
Auto Trait Implementations§
impl Freeze for FuzzyNfa
impl RefUnwindSafe for FuzzyNfa
impl Send for FuzzyNfa
impl Sync for FuzzyNfa
impl Unpin for FuzzyNfa
impl UnsafeUnpin for FuzzyNfa
impl UnwindSafe for FuzzyNfa
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