pub struct TextMatch {
pub chunk_id: u64,
pub matched_lines: Vec<usize>,
pub score: f32,
}Expand description
A single text match within a code chunk.
Fields§
§chunk_id: u64The chunk that matched.
matched_lines: Vec<usize>Line numbers (0-indexed) that matched.
score: f32Relevance score based on match count and density.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextMatch
impl RefUnwindSafe for TextMatch
impl Send for TextMatch
impl Sync for TextMatch
impl Unpin for TextMatch
impl UnsafeUnpin for TextMatch
impl UnwindSafe for TextMatch
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