pub enum PathApplyOutcome {
CleanExact,
CleanDrifted {
line_delta: i64,
},
Unassessed {
reason: UnassessedReason,
},
Conflict {
kind: ApplyConflictKind,
},
}Expand description
How one touched path is predicted to apply to the target tree.
Ranked by PathApplyOutcome::severity; payload-carrying variants
keep the enum out of Ord.
Variants§
CleanExact
Every hunk’s preimage matches at its expected line.
CleanDrifted
Applies, but at least one hunk’s preimage was found at a shifted
line. line_delta is the largest-magnitude shift.
Unassessed
The path could not be assessed; stated, never silent.
Fields
§
reason: UnassessedReasonConflict
At least one hunk predicts a conflict. kind is the worst
conflict kind across the path’s hunks.
Fields
§
kind: ApplyConflictKindImplementations§
Source§impl PathApplyOutcome
impl PathApplyOutcome
Trait Implementations§
Source§impl Clone for PathApplyOutcome
impl Clone for PathApplyOutcome
Source§impl Debug for PathApplyOutcome
impl Debug for PathApplyOutcome
Source§impl<'de> Deserialize<'de> for PathApplyOutcome
impl<'de> Deserialize<'de> for PathApplyOutcome
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
impl Eq for PathApplyOutcome
Source§impl PartialEq for PathApplyOutcome
impl PartialEq for PathApplyOutcome
Source§impl Serialize for PathApplyOutcome
impl Serialize for PathApplyOutcome
impl StructuralPartialEq for PathApplyOutcome
Auto Trait Implementations§
impl Forget for PathApplyOutcome
impl Freeze for PathApplyOutcome
impl Move for PathApplyOutcome
impl RefUnwindSafe for PathApplyOutcome
impl Send for PathApplyOutcome
impl Sync for PathApplyOutcome
impl Unpin for PathApplyOutcome
impl UnsafeUnpin for PathApplyOutcome
impl UnwindSafe for PathApplyOutcome
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