pub enum MergeStep {
Merged {
tree: String,
subsumed_paths: Vec<String>,
kept_landed_paths: Vec<String>,
},
Conflict(ReplayConflict),
}Expand description
What: The result of the merge half of a replay: the merged tree and what subsumption decided, or the conflict. Why: The incumbent revalidates the merged tree before it rebuilds the commit, so the two halves are separate steps.
In TS you’d write (pseudocode):
type MergeStep = { kind: 'merged'; treeOid; subsumedPaths; keptLandedPaths } | { kind: 'conflict'; ... };Variants§
Merged
The change applies cleanly.
Fields
Conflict(ReplayConflict)
The change conflicts with the target.
Trait Implementations§
impl Eq for MergeStep
impl StructuralPartialEq for MergeStep
Auto Trait Implementations§
impl Freeze for MergeStep
impl RefUnwindSafe for MergeStep
impl Send for MergeStep
impl Sync for MergeStep
impl Unpin for MergeStep
impl UnsafeUnpin for MergeStep
impl UnwindSafe for MergeStep
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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