pub struct UnifiedDiff {
pub original_path: String,
pub new_path: String,
pub hunks: Vec<DiffHunk>,
}Expand description
Represents a unified diff
Fields§
§original_path: StringOriginal file path
new_path: StringNew file path
hunks: Vec<DiffHunk>Hunks in the diff
Trait Implementations§
Source§impl Clone for UnifiedDiff
impl Clone for UnifiedDiff
Source§fn clone(&self) -> UnifiedDiff
fn clone(&self) -> UnifiedDiff
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 UnifiedDiff
impl RefUnwindSafe for UnifiedDiff
impl Send for UnifiedDiff
impl Sync for UnifiedDiff
impl Unpin for UnifiedDiff
impl UnwindSafe for UnifiedDiff
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