pub struct FuzzyMatch {
pub score: i32,
pub positions: Vec<usize>,
}Expand description
A match: higher scores are better; positions are the matched char indices of the
candidate (for highlighting), ascending.
Fields§
§score: i32§positions: Vec<usize>Trait Implementations§
Source§impl Clone for FuzzyMatch
impl Clone for FuzzyMatch
Source§impl Debug for FuzzyMatch
impl Debug for FuzzyMatch
impl Eq for FuzzyMatch
Source§impl PartialEq for FuzzyMatch
impl PartialEq for FuzzyMatch
impl StructuralPartialEq for FuzzyMatch
Auto 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