pub enum DiffOpKind {
Equal,
Delete,
Insert,
Replace,
}Expand description
Category of a diff operation on text or lines.
Variants§
Equal
Content is identical across both documents.
Delete
Content is deleted from the Base document.
Insert
Content is inserted into the Tailored document.
Replace
Content is modified/replaced between documents.
Trait Implementations§
Source§impl Clone for DiffOpKind
impl Clone for DiffOpKind
impl Copy for DiffOpKind
Source§impl Debug for DiffOpKind
impl Debug for DiffOpKind
impl Eq for DiffOpKind
Source§impl Hash for DiffOpKind
impl Hash for DiffOpKind
Source§impl PartialEq for DiffOpKind
impl PartialEq for DiffOpKind
impl StructuralPartialEq for DiffOpKind
Auto Trait Implementations§
impl Freeze for DiffOpKind
impl RefUnwindSafe for DiffOpKind
impl Send for DiffOpKind
impl Sync for DiffOpKind
impl Unpin for DiffOpKind
impl UnsafeUnpin for DiffOpKind
impl UnwindSafe for DiffOpKind
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