pub enum Conflict {
Keep {
style: ConflictStyle,
marker_size: NonZeroU8,
},
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: u8 = 7u8
pub const DEFAULT_MARKER_SIZE: u8 = 7u8
The amount of conflict marker characters to print by default.
Sourcepub fn marker_size(&self) -> Option<u8>
pub fn marker_size(&self) -> Option<u8>
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