pub enum DiffFormat {
Default,
Context(Option<u32>),
Rcs,
Summary,
Unified(Option<u32>),
}Expand description
Output format of the diff routine passed via -doptions.
This is one of two orthogonal dimensions of DiffOptions (the other
being WhitespaceHandling). Exactly one format may be selected; the
Default variant corresponds to no format flag.
Variants§
Default
Default diff output format (no format flag).
Context(Option<u32>)
Context output format (-dc[num]), showing num lines of context
around the changes.
Rcs
RCS output format (-dn), showing additions and deletions with
associated line ranges.
Summary
Summary output format (-ds), showing only the number of chunks and
lines added, deleted, or changed.
Unified(Option<u32>)
Unified output format (-du[num]), showing added and deleted lines
with num lines of context, in a form compatible with patch(1).
Trait Implementations§
Source§impl Clone for DiffFormat
impl Clone for DiffFormat
impl Copy for DiffFormat
Source§impl Debug for DiffFormat
impl Debug for DiffFormat
Source§impl Default for DiffFormat
impl Default for DiffFormat
impl Eq for DiffFormat
Source§impl PartialEq for DiffFormat
impl PartialEq for DiffFormat
impl StructuralPartialEq for DiffFormat
Auto Trait Implementations§
impl Freeze for DiffFormat
impl RefUnwindSafe for DiffFormat
impl Send for DiffFormat
impl Sync for DiffFormat
impl Unpin for DiffFormat
impl UnsafeUnpin for DiffFormat
impl UnwindSafe for DiffFormat
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