pub struct GeneratedPatch {
pub old_file: String,
pub new_file: String,
pub hunks: Vec<DiffHunk>,
}Expand description
A unified diff patch.
Fields§
§old_file: String§new_file: String§hunks: Vec<DiffHunk>Implementations§
Trait Implementations§
Source§impl Clone for UnifiedPatch
impl Clone for UnifiedPatch
Source§fn clone(&self) -> UnifiedPatch
fn clone(&self) -> UnifiedPatch
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 moreSource§impl Debug for UnifiedPatch
impl Debug for UnifiedPatch
Source§impl Default for UnifiedPatch
impl Default for UnifiedPatch
Source§fn default() -> UnifiedPatch
fn default() -> UnifiedPatch
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnifiedPatch
impl RefUnwindSafe for UnifiedPatch
impl Send for UnifiedPatch
impl Sync for UnifiedPatch
impl Unpin for UnifiedPatch
impl UnsafeUnpin for UnifiedPatch
impl UnwindSafe for UnifiedPatch
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