pub struct FileMatch {
pub score: u32,
pub path: String,
pub indices: Option<Vec<u32>>,
}Expand description
A single file match result.
Fields:
score: Relevance score from fuzzy matching (higher is better)path: File path relative to the search directoryindices: Optional character positions for highlighting matched characters
Fields§
§score: u32§path: String§indices: Option<Vec<u32>>Trait Implementations§
Auto Trait Implementations§
impl Freeze for FileMatch
impl RefUnwindSafe for FileMatch
impl Send for FileMatch
impl Sync for FileMatch
impl Unpin for FileMatch
impl UnwindSafe for FileMatch
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