pub struct GrepMatch {
pub path: String,
pub line_number: Option<usize>,
pub line: String,
}Expand description
A match returned from git grep-style repository inspection.
Fields§
§path: StringRepository-relative file path.
line_number: Option<usize>One-based line number, or None when line numbers were not requested.
line: StringRaw matching line content.
Trait Implementations§
impl Eq for GrepMatch
impl StructuralPartialEq for GrepMatch
Auto Trait Implementations§
impl Freeze for GrepMatch
impl RefUnwindSafe for GrepMatch
impl Send for GrepMatch
impl Sync for GrepMatch
impl Unpin for GrepMatch
impl UnsafeUnpin for GrepMatch
impl UnwindSafe for GrepMatch
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