pub struct MutationGenerator<'a> { /* private fields */ }Expand description
Mutation generator for playbooks.
Implementations§
Source§impl<'a> MutationGenerator<'a>
impl<'a> MutationGenerator<'a>
Sourcepub fn new(playbook: &'a Playbook) -> Self
pub fn new(playbook: &'a Playbook) -> Self
Create a new mutation generator for the given playbook.
Sourcepub fn generate_all(&self) -> Vec<Mutant>
pub fn generate_all(&self) -> Vec<Mutant>
Generate all possible mutants across all mutation classes.
Sourcepub fn generate(&self, class: MutationClass) -> Vec<Mutant>
pub fn generate(&self, class: MutationClass) -> Vec<Mutant>
Generate mutants for a specific class.
Auto Trait Implementations§
impl<'a> Freeze for MutationGenerator<'a>
impl<'a> RefUnwindSafe for MutationGenerator<'a>
impl<'a> Send for MutationGenerator<'a>
impl<'a> Sync for MutationGenerator<'a>
impl<'a> Unpin for MutationGenerator<'a>
impl<'a> UnsafeUnpin for MutationGenerator<'a>
impl<'a> UnwindSafe for MutationGenerator<'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> 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