pub enum CognitiveAttribution {
NestingReset,
FewerBranchPoints,
Mixed,
}Expand description
Where a cognitive-complexity improvement came from.
Variants§
NestingReset
Nesting depth was reset, which extraction does for free. No branching left.
FewerBranchPoints
The branch-point count fell. Still a statement about the count and not about the program: decision points are counted per file, including at module scope, but a branch can leave one file for another that the changeset did not touch, so there is no “branching removed” verdict.
Mixed
Both moved, or neither did. The second case is cognitive falling while branching and nesting both held, where naming either cause would assert something the numbers do not show.
Trait Implementations§
Source§impl Clone for CognitiveAttribution
impl Clone for CognitiveAttribution
impl Copy for CognitiveAttribution
Source§impl Debug for CognitiveAttribution
impl Debug for CognitiveAttribution
impl Eq for CognitiveAttribution
Source§impl PartialEq for CognitiveAttribution
impl PartialEq for CognitiveAttribution
Source§impl Serialize for CognitiveAttribution
impl Serialize for CognitiveAttribution
impl StructuralPartialEq for CognitiveAttribution
Auto Trait Implementations§
impl Freeze for CognitiveAttribution
impl RefUnwindSafe for CognitiveAttribution
impl Send for CognitiveAttribution
impl Sync for CognitiveAttribution
impl Unpin for CognitiveAttribution
impl UnsafeUnpin for CognitiveAttribution
impl UnwindSafe for CognitiveAttribution
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.