pub struct DiffResult {
pub changes: Vec<Change>,
pub significant_changes: Vec<usize>,
pub hunks: Vec<Hunk>,
pub insertions: usize,
pub deletions: usize,
}Expand description
Result of a diff operation
Fields§
§changes: Vec<Change>All changes in order
significant_changes: Vec<usize>Only the actual changes (excluding context)
hunks: Vec<Hunk>Hunks (groups of related changes)
insertions: usizeTotal number of insertions
deletions: usizeTotal number of deletions
Implementations§
Source§impl DiffResult
impl DiffResult
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