pub enum ConflictComplexity {
Text,
Syntax,
Functional,
TextSyntax,
TextFunctional,
SyntaxFunctional,
TextSyntaxFunctional,
Unknown,
}Expand description
Conflict complexity classification (ConGra taxonomy, arXiv:2409.14121).
Helps agents and tools choose appropriate resolution strategies:
- Text: trivial, usually auto-resolvable (comment changes)
- Syntax: signature/type changes, may need type-checking
- Functional: body logic changes, needs careful review
- Composite variants indicate multiple dimensions of change.
Variants§
Text
Only text/comment/string changes
Syntax
Signature, type, or structural changes (no body changes)
Functional
Function body / logic changes
TextSyntax
Both text and syntax changes
TextFunctional
Both text and functional changes
SyntaxFunctional
Both syntax and functional changes
TextSyntaxFunctional
All three dimensions changed
Unknown
Could not classify (e.g., unknown entity type)
Implementations§
Source§impl ConflictComplexity
impl ConflictComplexity
Sourcepub fn resolution_hint(&self) -> &'static str
pub fn resolution_hint(&self) -> &'static str
Human-readable resolution hint for this conflict type.
Trait Implementations§
Source§impl Clone for ConflictComplexity
impl Clone for ConflictComplexity
Source§fn clone(&self) -> ConflictComplexity
fn clone(&self) -> ConflictComplexity
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 ConflictComplexity
impl Debug for ConflictComplexity
Source§impl Display for ConflictComplexity
impl Display for ConflictComplexity
Source§impl PartialEq for ConflictComplexity
impl PartialEq for ConflictComplexity
impl Eq for ConflictComplexity
impl StructuralPartialEq for ConflictComplexity
Auto Trait Implementations§
impl Freeze for ConflictComplexity
impl RefUnwindSafe for ConflictComplexity
impl Send for ConflictComplexity
impl Sync for ConflictComplexity
impl Unpin for ConflictComplexity
impl UnsafeUnpin for ConflictComplexity
impl UnwindSafe for ConflictComplexity
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.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