pub struct SearchHit {
pub file: PathBuf,
pub line: u32,
pub content: String,
pub column: Option<usize>,
}Expand description
A search hit from grep
Fields§
§file: PathBufFile path (relative to workspace)
line: u32Line number (1-indexed)
content: StringContent of the matching line
column: Option<usize>Column where match starts (0-indexed)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SearchHit
impl RefUnwindSafe for SearchHit
impl Send for SearchHit
impl Sync for SearchHit
impl Unpin for SearchHit
impl UnwindSafe for SearchHit
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