pub struct UnifiedDiff {
pub old_path: Option<PathBuf>,
pub new_path: Option<PathBuf>,
pub hunks: Vec<DiffHunk>,
}Expand description
A unified diff representing a file change.
Fields§
§old_path: Option<PathBuf>§new_path: Option<PathBuf>§hunks: Vec<DiffHunk>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 moreSource§impl Debug for UnifiedDiff
impl Debug for UnifiedDiff
Source§impl<'de> Deserialize<'de> for UnifiedDiff
impl<'de> Deserialize<'de> for UnifiedDiff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UnifiedDiff
impl RefUnwindSafe for UnifiedDiff
impl Send for UnifiedDiff
impl Sync for UnifiedDiff
impl Unpin for UnifiedDiff
impl UnsafeUnpin 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