pub enum WholeFileClass {
Identical,
InsertOnly,
DeleteOnly,
Mixed,
}Expand description
Classification of a whole-file line diff, used to license (or refuse to license) a
constrained, delete-free/insert-free resolver downstream - see the phases-4-7 rearchitecture
plan’s “Step 2 - text-diff-first classification” section. Corpus-census-validated at whole-file
granularity (72/338 fixtures InsertOnly/DeleteOnly, zero ground-truth counterexamples); not
yet validated at hunk granularity within Mixed files.
Variants§
Identical
No lines changed at all.
InsertOnly
Every before-line is matched (nothing deleted); at least one after-line is new.
DeleteOnly
Every after-line is matched (nothing inserted); at least one before-line is gone.
Mixed
Both insertions and deletions present, or myers_lcs gave up past max_edit (treated as
Mixed since no license can be safely granted without knowing what actually changed).
Trait Implementations§
Source§impl Clone for WholeFileClass
impl Clone for WholeFileClass
Source§fn clone(&self) -> WholeFileClass
fn clone(&self) -> WholeFileClass
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for WholeFileClass
Source§impl Debug for WholeFileClass
impl Debug for WholeFileClass
impl Eq for WholeFileClass
Source§impl PartialEq for WholeFileClass
impl PartialEq for WholeFileClass
impl StructuralPartialEq for WholeFileClass
Auto Trait Implementations§
impl Freeze for WholeFileClass
impl RefUnwindSafe for WholeFileClass
impl Send for WholeFileClass
impl Sync for WholeFileClass
impl Unpin for WholeFileClass
impl UnsafeUnpin for WholeFileClass
impl UnwindSafe for WholeFileClass
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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