pub enum ReverseMergeOutcome {
Unchanged,
Patched(String),
Conflict(String),
}Expand description
Result of a reverse-merge attempt.
Variants§
Unchanged
No template change is needed. The deployed-file edit was confined to variable values.
Patched(String)
burgertocow produced a clean unified diff; the field carries the patched template content. Callers write this back to the source file.
Conflict(String)
burgertocow could not safely auto-merge. The field carries the
conflict block (as emitted by burgertocow with our markers) so
the caller can surface it to the user; the source file is not
modified by transform check in this case — the user resolves
it manually with their editor and git diff.
Implementations§
Source§impl ReverseMergeOutcome
impl ReverseMergeOutcome
Sourcepub fn is_actionable(&self) -> bool
pub fn is_actionable(&self) -> bool
True iff this outcome represents a template-space change that
the caller should record. Unchanged is “no work”; Patched
and Conflict are both “something happened”.
Trait Implementations§
Source§impl Clone for ReverseMergeOutcome
impl Clone for ReverseMergeOutcome
Source§fn clone(&self) -> ReverseMergeOutcome
fn clone(&self) -> ReverseMergeOutcome
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 ReverseMergeOutcome
impl Debug for ReverseMergeOutcome
Source§impl PartialEq for ReverseMergeOutcome
impl PartialEq for ReverseMergeOutcome
impl Eq for ReverseMergeOutcome
impl StructuralPartialEq for ReverseMergeOutcome
Auto Trait Implementations§
impl Freeze for ReverseMergeOutcome
impl RefUnwindSafe for ReverseMergeOutcome
impl Send for ReverseMergeOutcome
impl Sync for ReverseMergeOutcome
impl Unpin for ReverseMergeOutcome
impl UnsafeUnpin for ReverseMergeOutcome
impl UnwindSafe for ReverseMergeOutcome
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<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.