pub enum Conflict {
Keep {
style: ConflictStyle,
marker_size: usize,
},
ResolveWithOurs,
ResolveWithTheirs,
ResolveWithUnion,
}
Expand description
What to do to resolve a conflict.
Variants§
Keep
Keep the conflict by marking it in the source file.
Fields
§
style: ConflictStyle
How to visualize conflicts in merged files.
ResolveWithOurs
Chose our side to resolve a conflict.
ResolveWithTheirs
Chose their side to resolve a conflict.
ResolveWithUnion
Place our and their lines one after another, in any order
Implementations§
source§impl Conflict
impl Conflict
sourcepub const DEFAULT_MARKER_SIZE: usize = 7usize
pub const DEFAULT_MARKER_SIZE: usize = 7usize
The amount of conflict marker characters to print by default.
sourcepub fn marker_size(&self) -> Option<usize>
pub fn marker_size(&self) -> Option<usize>
The amount of conflict markers to print if this instance contains them, or None
otherwise
Trait Implementations§
source§impl Ord for Conflict
impl Ord for Conflict
source§impl PartialOrd for Conflict
impl PartialOrd for Conflict
impl Copy for Conflict
impl Eq for Conflict
impl StructuralPartialEq for Conflict
Auto Trait Implementations§
impl Freeze for Conflict
impl RefUnwindSafe for Conflict
impl Send for Conflict
impl Sync for Conflict
impl Unpin for Conflict
impl UnwindSafe for Conflict
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
)