pub enum ResolveWith {
Ancestor,
Ours,
}
Expand description
Decide how to resolve tree-related conflicts, but only those that have no way of being correct.
Variants§
Ancestor
On irreconcilable conflict, choose neither our nor their state, but keep the common ancestor state instead.
Ours
On irreconcilable conflict, choose our side.
Note that in order to get something equivalent to theirs, put theirs into the side of ours, swapping the sides essentially.
Trait Implementations§
Source§impl Clone for ResolveWith
impl Clone for ResolveWith
Source§fn clone(&self) -> ResolveWith
fn clone(&self) -> ResolveWith
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 ResolveWith
impl Debug for ResolveWith
Source§impl Hash for ResolveWith
impl Hash for ResolveWith
Source§impl Ord for ResolveWith
impl Ord for ResolveWith
Source§fn cmp(&self, other: &ResolveWith) -> Ordering
fn cmp(&self, other: &ResolveWith) -> 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 ResolveWith
impl PartialEq for ResolveWith
Source§impl PartialOrd for ResolveWith
impl PartialOrd for ResolveWith
impl Copy for ResolveWith
impl Eq for ResolveWith
impl StructuralPartialEq for ResolveWith
Auto Trait Implementations§
impl Freeze for ResolveWith
impl RefUnwindSafe for ResolveWith
impl Send for ResolveWith
impl Sync for ResolveWith
impl Unpin for ResolveWith
impl UnwindSafe for ResolveWith
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