pub struct MergeAttemptPlan { /* private fields */ }Expand description
Strategy + target decided once per merge attempt and reused by preview, refresh, apply, and diff (HeddleCo/heddle#503).
Before this seam existed, merge_thread_into_current computed the
content-merge strategy independently for the preview report and for
the apply MergePlan (two separate merge_strategy_for(use_semantic)
calls). They agreed only by construction — and a Codex r13 P2 finding
documented a real preview-vs-actual divergence regression caused by
exactly that kind of duplicated, drift-prone strategy state. Routing
every consumer through one decision makes “preview == apply” an
invariant the type system enforces rather than a discipline each call
site must remember.
Trait Implementations§
Source§impl Clone for MergeAttemptPlan
impl Clone for MergeAttemptPlan
Source§fn clone(&self) -> MergeAttemptPlan
fn clone(&self) -> MergeAttemptPlan
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MergeAttemptPlan
Source§impl Debug for MergeAttemptPlan
impl Debug for MergeAttemptPlan
impl Eq for MergeAttemptPlan
Source§impl PartialEq for MergeAttemptPlan
impl PartialEq for MergeAttemptPlan
impl StructuralPartialEq for MergeAttemptPlan
Auto Trait Implementations§
impl Freeze for MergeAttemptPlan
impl RefUnwindSafe for MergeAttemptPlan
impl Send for MergeAttemptPlan
impl Sync for MergeAttemptPlan
impl Unpin for MergeAttemptPlan
impl UnsafeUnpin for MergeAttemptPlan
impl UnwindSafe for MergeAttemptPlan
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