pub struct GuardNfa { /* private fields */ }Expand description
Guard-based NFA for fast fuzzy matching.
Implementations§
Source§impl GuardNfa
impl GuardNfa
Sourcepub fn new(
pattern: &str,
edit_limits: EditLimits,
case_insensitive: bool,
) -> Self
pub fn new( pattern: &str, edit_limits: EditLimits, case_insensitive: bool, ) -> Self
Create a new guard-based NFA.
Sourcepub fn find_first(&self, text: &str, threshold: f32) -> Option<DamLevMatch>
pub fn find_first(&self, text: &str, threshold: f32) -> Option<DamLevMatch>
Find the first match in text with early termination.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GuardNfa
impl RefUnwindSafe for GuardNfa
impl Send for GuardNfa
impl Sync for GuardNfa
impl Unpin for GuardNfa
impl UnsafeUnpin for GuardNfa
impl UnwindSafe for GuardNfa
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