pub struct DeadCodeView<'a> {
pub results: &'a AnalysisResults,
pub config: &'a ResolvedConfig,
pub root: &'a Path,
pub type_aware: Option<&'a TypeAwareMeta>,
pub syntactic_keys: Option<&'a FxHashSet<String>>,
pub public_api: Option<&'a FxHashSet<String>>,
}Expand description
The dead-code analysis of one audit side, as the audit reads it.
Fields§
§results: &'a AnalysisResultsFindings after change scoping.
config: &'a ResolvedConfigConfig that decides the effective severity of each finding.
root: &'a PathRoot that key paths are relative to.
type_aware: Option<&'a TypeAwareMeta>Type-aware metadata of the pass, when it ran type-aware analysis.
syntactic_keys: Option<&'a FxHashSet<String>>Dead-code keys before type-aware refinement, when the surface captured them.
public_api: Option<&'a FxHashSet<String>>Exports-aware public-export keys, when the surface computed them.
Auto Trait Implementations§
impl<'a> Freeze for DeadCodeView<'a>
impl<'a> RefUnwindSafe for DeadCodeView<'a>
impl<'a> Send for DeadCodeView<'a>
impl<'a> Sync for DeadCodeView<'a>
impl<'a> Unpin for DeadCodeView<'a>
impl<'a> UnsafeUnpin for DeadCodeView<'a>
impl<'a> UnwindSafe for DeadCodeView<'a>
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> 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