pub enum WhitespaceHandling {
None,
IgnoreLineEndings,
IgnoreChangesWithinWhitespace,
IgnoreAllWhitespace,
}Expand description
Whitespace handling of the diff routine passed via -doptions.
This is one of two orthogonal dimensions of DiffOptions (the other
being DiffFormat). The
IgnoreChangesWithinWhitespace
and IgnoreAllWhitespace
variants each imply
IgnoreLineEndings.
Variants§
None
No whitespace handling.
IgnoreLineEndings
Ignore line-ending (CR/LF) convention when finding diffs (-dl).
IgnoreChangesWithinWhitespace
Ignore changes made within whitespace (-db); implies -dl.
IgnoreAllWhitespace
Ignore whitespace altogether (-dw); implies -dl.
Trait Implementations§
Source§impl Clone for WhitespaceHandling
impl Clone for WhitespaceHandling
impl Copy for WhitespaceHandling
Source§impl Debug for WhitespaceHandling
impl Debug for WhitespaceHandling
Source§impl Default for WhitespaceHandling
impl Default for WhitespaceHandling
impl Eq for WhitespaceHandling
Source§impl PartialEq for WhitespaceHandling
impl PartialEq for WhitespaceHandling
impl StructuralPartialEq for WhitespaceHandling
Auto Trait Implementations§
impl Freeze for WhitespaceHandling
impl RefUnwindSafe for WhitespaceHandling
impl Send for WhitespaceHandling
impl Sync for WhitespaceHandling
impl Unpin for WhitespaceHandling
impl UnsafeUnpin for WhitespaceHandling
impl UnwindSafe for WhitespaceHandling
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