pub enum DiffGranularity {
Word,
Line,
Character,
}Expand description
Diff granularity mode selectable via --granularity.
Variants§
Word
Diff by word tokens (Default).
Line
Diff by full lines.
Character
Diff by individual characters/glyphs.
Trait Implementations§
Source§impl Clone for DiffGranularity
impl Clone for DiffGranularity
impl Copy for DiffGranularity
Source§impl Debug for DiffGranularity
impl Debug for DiffGranularity
Source§impl Default for DiffGranularity
impl Default for DiffGranularity
impl Eq for DiffGranularity
Source§impl PartialEq for DiffGranularity
impl PartialEq for DiffGranularity
impl StructuralPartialEq for DiffGranularity
Source§impl ValueEnum for DiffGranularity
impl ValueEnum for DiffGranularity
Auto Trait Implementations§
impl Freeze for DiffGranularity
impl RefUnwindSafe for DiffGranularity
impl Send for DiffGranularity
impl Sync for DiffGranularity
impl Unpin for DiffGranularity
impl UnsafeUnpin for DiffGranularity
impl UnwindSafe for DiffGranularity
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more