pub struct FindingIdTrace { /* private fields */ }Expand description
Evidence for a finding-id answer, collected around the filter stages of one run.
A requested id that is present before a filter stage and absent after it
was hidden by this run, not fixed. Those ids end in filtered. A stage
that is analysis (type-aware refinement) stays outside every stage, so a
finding it removes counts as gone.
Implementations§
Source§impl FindingIdTrace
impl FindingIdTrace
Sourcepub fn start(filter: FindingIdFilter, results: &mut AnalysisResults) -> Self
pub fn start(filter: FindingIdFilter, results: &mut AnalysisResults) -> Self
Start the first filter stage on the full result set.
Sourcepub fn start_stage(&mut self, results: &mut AnalysisResults)
pub fn start_stage(&mut self, results: &mut AnalysisResults)
Start a filter stage after work that is not a filter.
Sourcepub fn end_stage(&mut self, results: &mut AnalysisResults)
pub fn end_stage(&mut self, results: &mut AnalysisResults)
End a filter stage: the requested ids it removed count as filtered.
Sourcepub fn finish(
self,
results: &mut AnalysisResults,
config: &ResolvedConfig,
run_reasons: impl IntoIterator<Item = FindingIdQueryReason>,
) -> FindingIdQuery
pub fn finish( self, results: &mut AnalysisResults, config: &ResolvedConfig, run_reasons: impl IntoIterator<Item = FindingIdQueryReason>, ) -> FindingIdQuery
Apply the filter and build the answer. See FindingIdFilter::apply.
Trait Implementations§
Source§impl Clone for FindingIdTrace
impl Clone for FindingIdTrace
Auto Trait Implementations§
impl Freeze for FindingIdTrace
impl RefUnwindSafe for FindingIdTrace
impl Send for FindingIdTrace
impl Sync for FindingIdTrace
impl Unpin for FindingIdTrace
impl UnsafeUnpin for FindingIdTrace
impl UnwindSafe for FindingIdTrace
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