pub struct DiffResult {
pub diff: String,
pub has_changes: bool,
pub lines_changed: usize,
pub changed_new_lines: Vec<usize>,
}Expand description
Result of computing a diff between two file contents
Fields§
§diff: StringUnified diff string
has_changes: boolWhether there are any changes
lines_changed: usizeNumber of lines changed (added + removed)
changed_new_lines: Vec<usize>Line numbers in the NEW file that were added or modified
Trait Implementations§
Source§impl Clone for DiffResult
impl Clone for DiffResult
Source§fn clone(&self) -> DiffResult
fn clone(&self) -> DiffResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiffResult
impl RefUnwindSafe for DiffResult
impl Send for DiffResult
impl Sync for DiffResult
impl Unpin for DiffResult
impl UnsafeUnpin for DiffResult
impl UnwindSafe for DiffResult
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