pub enum MutationScope {
ChangedSinceBase(DiffIndex),
All,
Paths(Vec<PathBuf>),
}Expand description
The files and lines that a plan mutates.
Variants§
ChangedSinceBase(DiffIndex)
The added lines of a diff against the base ref. Build the index with
the existing diff machinery (changed_files::try_get_changed_diff,
DiffIndex::from_unified_diff and diff_source::place_diff). Only
mutants that overlap an added line are kept.
All
Each source file of the project.
Paths(Vec<PathBuf>)
The files at these paths, or below these directories. A relative path is relative to the project root.
Trait Implementations§
Source§impl Clone for MutationScope
impl Clone for MutationScope
Auto Trait Implementations§
impl Freeze for MutationScope
impl RefUnwindSafe for MutationScope
impl Send for MutationScope
impl Sync for MutationScope
impl Unpin for MutationScope
impl UnsafeUnpin for MutationScope
impl UnwindSafe for MutationScope
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