pub enum ThreeWayStatus {
Unchanged,
OursOnly,
TheirsOnly,
BothSame,
Conflict,
AddedBothSame,
AddedBothDifferent,
DeleteModify {
deleted_by: Side,
},
BothDeleted,
}Expand description
Status of a file in a three-way diff.
Variants§
Unchanged
File unchanged in all three versions.
OursOnly
Only our side modified the file (theirs unchanged from base).
TheirsOnly
Only their side modified the file (ours unchanged from base).
BothSame
Both sides made identical changes (auto-mergeable).
Conflict
Both sides modified differently (conflict).
AddedBothSame
Both sides added with same content (auto-mergeable).
AddedBothDifferent
Both sides added with different content (conflict).
DeleteModify
One side deleted, other side modified (conflict).
BothDeleted
Both sides deleted the file.
Implementations§
Source§impl ThreeWayStatus
impl ThreeWayStatus
Sourcepub fn is_conflict(&self) -> bool
pub fn is_conflict(&self) -> bool
Returns true if this status represents a conflict.
Sourcepub fn is_auto_mergeable(&self) -> bool
pub fn is_auto_mergeable(&self) -> bool
Returns true if this status can be auto-merged.
Trait Implementations§
Source§impl Clone for ThreeWayStatus
impl Clone for ThreeWayStatus
Source§fn clone(&self) -> ThreeWayStatus
fn clone(&self) -> ThreeWayStatus
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 ThreeWayStatus
impl Debug for ThreeWayStatus
Source§impl<'de> Deserialize<'de> for ThreeWayStatus
impl<'de> Deserialize<'de> for ThreeWayStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ThreeWayStatus
impl PartialEq for ThreeWayStatus
Source§impl Serialize for ThreeWayStatus
impl Serialize for ThreeWayStatus
impl Eq for ThreeWayStatus
impl StructuralPartialEq for ThreeWayStatus
Auto Trait Implementations§
impl Freeze for ThreeWayStatus
impl RefUnwindSafe for ThreeWayStatus
impl Send for ThreeWayStatus
impl Sync for ThreeWayStatus
impl Unpin for ThreeWayStatus
impl UnsafeUnpin for ThreeWayStatus
impl UnwindSafe for ThreeWayStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more