pub struct AuditComparison {
pub dead_code: DeadCodeAuditLedger,
pub health: AuditDomainLedger,
pub health_classes: Vec<ComplexityClass>,
pub dupes: AuditDomainLedger,
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.
styling: AuditDomainLedgerStyling finding membership.
Implementations§
Source§impl AuditComparison
impl AuditComparison
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(&mut self)
pub fn clear_worsened(&mut self)
Reclassify worsened complexity findings as inherited, for
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 Freeze 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
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<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> ⓘ
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