pub enum MergePolicy {
Fail,
Ours,
Theirs,
}Expand description
What to do with a key both branches changed (DESIGN §4.2).
Variants§
Fail
Change nothing and report the conflicting keys. The default: an agent should have to say which side wins.
Ours
Keep the target branch’s value.
Theirs
Take the source branch’s value.
Implementations§
Trait Implementations§
Source§impl Clone for MergePolicy
impl Clone for MergePolicy
impl Copy for MergePolicy
Source§impl Debug for MergePolicy
impl Debug for MergePolicy
Source§impl Default for MergePolicy
impl Default for MergePolicy
impl Eq for MergePolicy
Source§impl PartialEq for MergePolicy
impl PartialEq for MergePolicy
impl StructuralPartialEq for MergePolicy
Auto Trait Implementations§
impl Forget for MergePolicy
impl Freeze for MergePolicy
impl Move for MergePolicy
impl RefUnwindSafe for MergePolicy
impl Send for MergePolicy
impl Sync for MergePolicy
impl Unpin for MergePolicy
impl UnsafeUnpin for MergePolicy
impl UnwindSafe for MergePolicy
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