pub struct PairScope<'a> {
pub root: &'a Path,
pub ignore_set: &'a GlobSet,
pub ws_roots: Option<&'a [PathBuf]>,
pub diff_index: Option<&'a DiffIndex>,
}Expand description
Scope filters for hidden pairs: health.ignore, the workspace filter, and
an optional diff.
Fields§
§root: &'a PathProject root. The ignore globs and the diff keys are relative to it.
ignore_set: &'a GlobSetCompiled health.ignore globs, from health_ignore_set.
ws_roots: Option<&'a [PathBuf]>Workspace roots of --workspace or --changed-workspaces.
diff_index: Option<&'a DiffIndex>Changed lines of the diff, when the run is diff-scoped.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PairScope<'a>
impl<'a> RefUnwindSafe for PairScope<'a>
impl<'a> Send for PairScope<'a>
impl<'a> Sync for PairScope<'a>
impl<'a> Unpin for PairScope<'a>
impl<'a> UnsafeUnpin for PairScope<'a>
impl<'a> UnwindSafe for PairScope<'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