pub struct AuditDomainLedger { /* private fields */ }Expand description
Stable-key membership for one non-dead-code audit domain.
Implementations§
Source§impl AuditDomainLedger
impl AuditDomainLedger
Sourcepub fn compare(
keys: impl IntoIterator<Item = String>,
base: Option<&FxHashSet<String>>,
) -> Self
pub fn compare( keys: impl IntoIterator<Item = String>, base: Option<&FxHashSet<String>>, ) -> Self
Compare ordered stable keys against an optional base snapshot.
Sourcepub fn introduced_count(&self) -> usize
pub fn introduced_count(&self) -> usize
Number of introduced findings.
Sourcepub fn inherited_count(&self) -> usize
pub fn inherited_count(&self) -> usize
Number of inherited findings.
Sourcepub fn introduced(&self) -> impl ExactSizeIterator<Item = bool> + '_
pub fn introduced(&self) -> impl ExactSizeIterator<Item = bool> + '_
Introduced membership in typed output order.
Sourcepub fn demoted_count(&self) -> usize
pub fn demoted_count(&self) -> usize
Number of findings demoted from introduced to inherited. Demoted
findings stay counted as inherited, so
demoted_count() <= inherited_count() holds by construction.
Sourcepub const fn demoted_keys(&self) -> &FxHashSet<String>
pub const fn demoted_keys(&self) -> &FxHashSet<String>
Keys demoted from introduced to inherited by
Self::demote_introductions.
Sourcepub fn demoted(&self) -> impl ExactSizeIterator<Item = bool> + '_
pub fn demoted(&self) -> impl ExactSizeIterator<Item = bool> + '_
Demoted membership in typed output order, parallel to
Self::introduced.
Sourcepub fn demote_introductions(&mut self, demote: &FxHashSet<String>)
pub fn demote_introductions(&mut self, demote: &FxHashSet<String>)
Demote introduced findings whose keys are in demote to inherited
(advisory) status so they no longer fail the new-only gate. Each key
actually flipped is recorded so output surfaces can report the
demotion (issue #2220).
Trait Implementations§
Source§impl Clone for AuditDomainLedger
impl Clone for AuditDomainLedger
Source§impl Debug for AuditDomainLedger
impl Debug for AuditDomainLedger
Auto Trait Implementations§
impl Freeze for AuditDomainLedger
impl RefUnwindSafe for AuditDomainLedger
impl Send for AuditDomainLedger
impl Sync for AuditDomainLedger
impl Unpin for AuditDomainLedger
impl UnsafeUnpin for AuditDomainLedger
impl UnwindSafe for AuditDomainLedger
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