pub enum HunkState {
Clean,
Conflicted(ConflictReason),
Satisfied,
}Expand description
Whether a proposal hunk can still be applied (ADR-0006 §4, §5).
State lives on the hunk, never the proposal: a conflict in one hunk must not invalidate its siblings, because ARCHITECTURE.md §9.3 requires per-hunk review.
Variants§
Clean
Applies as-is.
Conflicted(ConflictReason)
Cannot be applied; the human resolves it or re-asks the agent.
Satisfied
The human already made this change themselves, so there is nothing left to do.
Implementations§
Trait Implementations§
impl Copy for HunkState
impl Eq for HunkState
impl StructuralPartialEq for HunkState
Auto Trait Implementations§
impl Freeze for HunkState
impl RefUnwindSafe for HunkState
impl Send for HunkState
impl Sync for HunkState
impl Unpin for HunkState
impl UnsafeUnpin for HunkState
impl UnwindSafe for HunkState
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