pub enum MergeRegion {
Common(Vec<String>),
Ours(Vec<String>),
Theirs(Vec<String>),
Conflict {
ours: Vec<String>,
theirs: Vec<String>,
},
}Expand description
Outcome of merging a single region.
Variants§
Common(Vec<String>)
Both sides agree — use the common text.
Ours(Vec<String>)
Only one side changed.
Theirs(Vec<String>)
Only the other side changed.
Conflict
Both sides changed differently — a conflict.
Trait Implementations§
Source§impl Clone for MergeRegion
impl Clone for MergeRegion
Source§fn clone(&self) -> MergeRegion
fn clone(&self) -> MergeRegion
Returns a duplicate 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 MergeRegion
impl Debug for MergeRegion
Source§impl PartialEq for MergeRegion
impl PartialEq for MergeRegion
impl StructuralPartialEq for MergeRegion
Auto Trait Implementations§
impl Freeze for MergeRegion
impl RefUnwindSafe for MergeRegion
impl Send for MergeRegion
impl Sync for MergeRegion
impl Unpin for MergeRegion
impl UnsafeUnpin for MergeRegion
impl UnwindSafe for MergeRegion
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