pub struct AuditComparison {
pub dead_code: DeadCodeAuditLedger,
pub health: AuditDomainLedger,
pub health_classes: Vec<ComplexityClass>,
pub dupes: AuditDomainLedger,
pub dupe_regions: CloneRegions,
pub styling: AuditDomainLedger,
}Expand description
One-pass audit comparison shared by attribution, verdict, and annotations.
Fields§
§dead_code: DeadCodeAuditLedgerDead-code finding ledger with effective severity routing.
health: AuditDomainLedgerComplexity finding membership.
health_classes: Vec<ComplexityClass>Attribution class of each complexity finding, in report order. Empty without a base snapshot.
dupes: AuditDomainLedgerDuplication group membership. The introduced flag of a group is the gate result of its region.
dupe_regions: CloneRegionsThe clone regions: the head groups whose instances overlap, with a grade each. Empty until the audit grades them, or without a base.
styling: AuditDomainLedgerStyling finding membership.
Implementations§
Source§impl AuditComparison
impl AuditComparison
Sourcepub fn duplication_introduced_count(&self) -> usize
pub fn duplication_introduced_count(&self) -> usize
Number of clone regions that fail the gate. Without graded regions, the number of introduced clone groups.
Sourcepub fn duplication_inherited_count(&self) -> usize
pub fn duplication_inherited_count(&self) -> usize
Number of clone regions that do not fail the gate. Without graded regions, the number of inherited clone groups.
Sourcepub fn complexity_worsened_count(&self) -> usize
pub fn complexity_worsened_count(&self) -> usize
Number of complexity findings whose attribution is worsened.
Sourcepub fn clear_worsened_when_off(&mut self, worsened: AuditWorsened)
pub fn clear_worsened_when_off(&mut self, worsened: AuditWorsened)
Reclassify worsened complexity findings as inherited when worsened
is audit.worsened: off. Growth of an exceeded metric stays worsened,
see ComplexityClass::clear_worsened_for_off.
Trait Implementations§
Source§impl Clone for AuditComparison
impl Clone for AuditComparison
Source§impl Debug for AuditComparison
impl Debug for AuditComparison
Auto Trait Implementations§
impl Forget for AuditComparison
impl Freeze for AuditComparison
impl Move for AuditComparison
impl RefUnwindSafe for AuditComparison
impl Send for AuditComparison
impl Sync for AuditComparison
impl Unpin for AuditComparison
impl UnsafeUnpin for AuditComparison
impl UnwindSafe for AuditComparison
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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