pub struct FuzzyMatch {
pub start: usize,
pub end: usize,
pub matched_text: String,
pub score: f64,
}Expand description
Result of a fuzzy match operation
Fields§
§start: usizeByte offset where the match starts
end: usizeByte offset where the match ends
matched_text: StringThe actual text that was matched
score: f64Similarity score (0.0 to 1.0, higher is better)
Trait Implementations§
Source§impl Clone for FuzzyMatch
impl Clone for FuzzyMatch
Source§fn clone(&self) -> FuzzyMatch
fn clone(&self) -> FuzzyMatch
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 moreAuto Trait Implementations§
impl Freeze for FuzzyMatch
impl RefUnwindSafe for FuzzyMatch
impl Send for FuzzyMatch
impl Sync for FuzzyMatch
impl Unpin for FuzzyMatch
impl UnsafeUnpin for FuzzyMatch
impl UnwindSafe for FuzzyMatch
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