pub struct DeadCodeContext<'a> {
pub stats: &'a Stats,
pub duration: Duration,
pub roots: &'a [PathBuf],
}Expand description
Run-level context every dead-code reporter receives.
Fields§
§stats: &'a Stats§duration: DurationWall-clock time of the run, for the trailer line.
roots: &'a [PathBuf]Scan roots the finding paths are relative to. A reporter that shows source needs them: the report is written to be read from anywhere, so it cannot assume the working directory is still the scan root.
Implementations§
Source§impl<'a> DeadCodeContext<'a>
impl<'a> DeadCodeContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeadCodeContext<'a>
impl<'a> RefUnwindSafe for DeadCodeContext<'a>
impl<'a> Send for DeadCodeContext<'a>
impl<'a> Sync for DeadCodeContext<'a>
impl<'a> Unpin for DeadCodeContext<'a>
impl<'a> UnsafeUnpin for DeadCodeContext<'a>
impl<'a> UnwindSafe for DeadCodeContext<'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
impl<T> ErasedDestructor for Twhere
T: 'static,
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