pub enum ConflictStyle {
Merge,
Diff3,
ZealousDiff3,
}
Expand description
The way the built-in text driver will express merge conflicts in the resulting file.
Variants§
Merge
Only show the zealously minified conflicting lines of the local changes and the incoming (other) changes, hiding the base version entirely.
line1-changed-by-both
<<<<<<< local
line2-to-be-changed-in-incoming
=======
line2-changed
>>>>>>> incoming
Diff3
Show non-minimized hunks of local changes, the base, and the incoming (other) changes.
This mode does not hide any information.
<<<<<<< local
line1-changed-by-both
line2-to-be-changed-in-incoming
||||||| 9a8d80c
line1-to-be-changed-by-both
line2-to-be-changed-in-incoming
=======
line1-changed-by-both
line2-changed
>>>>>>> incoming
ZealousDiff3
Like `Diff3, but will show minimized hunks of local change and the incoming (other) changes, as well as non-minimized hunks of the base.
line1-changed-by-both
<<<<<<< local
line2-to-be-changed-in-incoming
||||||| 9a8d80c
line1-to-be-changed-by-both
line2-to-be-changed-in-incoming
=======
line2-changed
>>>>>>> incoming
Trait Implementations§
source§impl Clone for ConflictStyle
impl Clone for ConflictStyle
source§fn clone(&self) -> ConflictStyle
fn clone(&self) -> ConflictStyle
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConflictStyle
impl Debug for ConflictStyle
source§impl Default for ConflictStyle
impl Default for ConflictStyle
source§fn default() -> ConflictStyle
fn default() -> ConflictStyle
Returns the “default value” for a type. Read more
source§impl Hash for ConflictStyle
impl Hash for ConflictStyle
source§impl Ord for ConflictStyle
impl Ord for ConflictStyle
source§fn cmp(&self, other: &ConflictStyle) -> Ordering
fn cmp(&self, other: &ConflictStyle) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for ConflictStyle
impl PartialEq for ConflictStyle
source§impl PartialOrd for ConflictStyle
impl PartialOrd for ConflictStyle
impl Copy for ConflictStyle
impl Eq for ConflictStyle
impl StructuralPartialEq for ConflictStyle
Auto Trait Implementations§
impl Freeze for ConflictStyle
impl RefUnwindSafe for ConflictStyle
impl Send for ConflictStyle
impl Sync for ConflictStyle
impl Unpin for ConflictStyle
impl UnwindSafe for ConflictStyle
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)