pub struct TreatAsUnresolved {
pub content_merge: ContentMerge,
pub tree_merge: TreeMerge,
}
Expand description
Determine what should be considered an unresolved conflict.
Fields§
§content_merge: ContentMerge
Determine which content merges should be considered unresolved.
tree_merge: TreeMerge
Determine which tree merges should be considered unresolved.
Implementations§
Source§impl TreatAsUnresolved
Instantiation/Presets
impl TreatAsUnresolved
Instantiation/Presets
Sourcepub fn forced_resolution() -> Self
pub fn forced_resolution() -> Self
Return an instance with the highest sensitivity to what should be considered unresolved as it includes entries which have been resolved using a merge strategy.
Sourcepub fn git() -> Self
pub fn git() -> Self
Return an instance that considers unresolved any conflict that Git would also consider unresolved.
This is the same as the default()
implementation.
Sourcepub fn undecidable() -> Self
pub fn undecidable() -> Self
Only undecidable tree merges and conflict markers are considered unresolved. This also means that renamed entries to make space for a conflicting one is considered acceptable, making this preset the most lenient.
Trait Implementations§
Source§impl Clone for TreatAsUnresolved
impl Clone for TreatAsUnresolved
Source§fn clone(&self) -> TreatAsUnresolved
fn clone(&self) -> TreatAsUnresolved
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 TreatAsUnresolved
impl Debug for TreatAsUnresolved
Source§impl Default for TreatAsUnresolved
impl Default for TreatAsUnresolved
Source§fn default() -> TreatAsUnresolved
fn default() -> TreatAsUnresolved
Returns the “default value” for a type. Read more
Source§impl Hash for TreatAsUnresolved
impl Hash for TreatAsUnresolved
Source§impl Ord for TreatAsUnresolved
impl Ord for TreatAsUnresolved
Source§fn cmp(&self, other: &TreatAsUnresolved) -> Ordering
fn cmp(&self, other: &TreatAsUnresolved) -> 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 TreatAsUnresolved
impl PartialEq for TreatAsUnresolved
Source§impl PartialOrd for TreatAsUnresolved
impl PartialOrd for TreatAsUnresolved
impl Copy for TreatAsUnresolved
impl Eq for TreatAsUnresolved
impl StructuralPartialEq for TreatAsUnresolved
Auto Trait Implementations§
impl Freeze for TreatAsUnresolved
impl RefUnwindSafe for TreatAsUnresolved
impl Send for TreatAsUnresolved
impl Sync for TreatAsUnresolved
impl Unpin for TreatAsUnresolved
impl UnwindSafe for TreatAsUnresolved
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