pub struct DiffOptions {
pub compact: bool,
pub context_len: usize,
pub algorithm: Algorithm,
}
Expand description
A collection of options for modifying the way a diff is performed
Fields§
§compact: bool
Diff compaction, a post-processing step which attempts to produce a prettier diff by reducing the number of edited blocks by shifting and merging edit blocks.
context_len: usize
Set the number of context lines that should be used when producing a patch
algorithm: Algorithm
Implementations§
Trait Implementations§
Source§impl Debug for DiffOptions
impl Debug for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnwindSafe for DiffOptions
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