pub struct SearchMatch {
pub path: String,
pub line: usize,
pub context_before: Vec<String>,
pub text: String,
pub context_after: Vec<String>,
}Expand description
Result row for indexed text search.
Fields§
§path: StringRepository-relative path.
line: usizeOne-based line number.
context_before: Vec<String>Context before the matching line.
text: StringMatching line text.
context_after: Vec<String>Context after the matching line.
Trait Implementations§
Source§impl Debug for SearchMatch
impl Debug for SearchMatch
Auto Trait Implementations§
impl Freeze for SearchMatch
impl RefUnwindSafe for SearchMatch
impl Send for SearchMatch
impl Sync for SearchMatch
impl Unpin for SearchMatch
impl UnwindSafe for SearchMatch
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