pub enum FileHeader {
Added {
path: PathBuf,
new: DiffFile,
binary: bool,
},
Copied {
old_path: PathBuf,
new_path: PathBuf,
},
Deleted {
path: PathBuf,
old: DiffFile,
binary: bool,
},
Modified {
path: PathBuf,
old: DiffFile,
new: DiffFile,
binary: bool,
},
Moved {
old_path: PathBuf,
new_path: PathBuf,
},
}
Expand description
The kind of FileDiff Header which can be used to print the FileDiff information which precedes
Hunks
.
Variants§
Trait Implementations§
Source§impl Clone for FileHeader
impl Clone for FileHeader
Source§fn clone(&self) -> FileHeader
fn clone(&self) -> FileHeader
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 FileHeader
impl Debug for FileHeader
Source§impl Encode for FileHeader
impl Encode for FileHeader
Source§impl From<&FileDDiff> for FileHeader
impl From<&FileDDiff> for FileHeader
Source§impl From<&FileDiff> for FileHeader
impl From<&FileDiff> for FileHeader
Source§impl PartialEq for FileHeader
impl PartialEq for FileHeader
Source§impl ToPretty for FileHeader
impl ToPretty for FileHeader
impl StructuralPartialEq for FileHeader
Auto Trait Implementations§
impl Freeze for FileHeader
impl RefUnwindSafe for FileHeader
impl Send for FileHeader
impl Sync for FileHeader
impl Unpin for FileHeader
impl UnwindSafe for FileHeader
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