pub struct BlameFileResult {
pub file: String,
pub line_numbers: Vec<usize>,
}
Expand description
Holds results after git blame process is done
Fields§
§file: String
Path to file
line_numbers: Vec<usize>
List of line numbers in the file where the phrase is found
Implementations§
Source§impl BlameFileResult
impl BlameFileResult
Sourcepub fn add_line_number(&mut self, line_number: usize)
pub fn add_line_number(&mut self, line_number: usize)
adds new line number where the phrase is found
Trait Implementations§
Source§impl Clone for BlameFileResult
impl Clone for BlameFileResult
Source§fn clone(&self) -> BlameFileResult
fn clone(&self) -> BlameFileResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for BlameFileResult
impl RefUnwindSafe for BlameFileResult
impl Send for BlameFileResult
impl Sync for BlameFileResult
impl Unpin for BlameFileResult
impl UnwindSafe for BlameFileResult
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