pub struct ScenarioMutator<MutatorT0 = <u32 as DefaultMutate>::DefaultMutate, MutatorT1 = <u32 as DefaultMutate>::DefaultMutate, MutatorT2 = <u32 as DefaultMutate>::DefaultMutate, MutatorT3 = <CatchKind as DefaultMutate>::DefaultMutate, MutatorT4 = <Vec<u32> as DefaultMutate>::DefaultMutate, MutatorT5 = <Vec<u32> as DefaultMutate>::DefaultMutate> { /* private fields */ }Expand description
A mutator for the Scenario type.
Implementations§
Source§impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
Trait Implementations§
Source§impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Default for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Default for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
Source§impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Generate<Scenario> for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Generate<Scenario> for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
Source§impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Mutate<Scenario> for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Mutate<Scenario> for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
Source§fn mutate(
&mut self,
mutations: &mut Candidates<'_>,
value: &mut Scenario,
) -> Result<()>
fn mutate( &mut self, mutations: &mut Candidates<'_>, value: &mut Scenario, ) -> Result<()>
Pseudo-randomly mutate the given value. Read more
Source§fn mutation_count(&self, value: &Scenario, shrink: bool) -> Option<u32>
fn mutation_count(&self, value: &Scenario, shrink: bool) -> Option<u32>
Return the number of mutations that [
mutate][Mutate::mutate] would
register for the given value. Read more§fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
fn or<M>(self, other: M) -> Or<Self, M>where
Self: Sized,
Create a new mutator that performs either this mutation or the
other
mutation. Read more§fn map<F>(self, f: F) -> Map<Self, F>
fn map<F>(self, f: F) -> Map<Self, F>
Map a function over the mutations produced by this mutator. Read more
Auto Trait Implementations§
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Freeze for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> RefUnwindSafe for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>where
MutatorT0: RefUnwindSafe,
MutatorT1: RefUnwindSafe,
MutatorT2: RefUnwindSafe,
MutatorT3: RefUnwindSafe,
MutatorT4: RefUnwindSafe,
MutatorT5: RefUnwindSafe,
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Send for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Sync for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> Unpin for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> UnsafeUnpin for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>where
MutatorT0: UnsafeUnpin,
MutatorT1: UnsafeUnpin,
MutatorT2: UnsafeUnpin,
MutatorT3: UnsafeUnpin,
MutatorT4: UnsafeUnpin,
MutatorT5: UnsafeUnpin,
impl<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5> UnwindSafe for ScenarioMutator<MutatorT0, MutatorT1, MutatorT2, MutatorT3, MutatorT4, MutatorT5>where
MutatorT0: UnwindSafe,
MutatorT1: UnwindSafe,
MutatorT2: UnwindSafe,
MutatorT3: UnwindSafe,
MutatorT4: UnwindSafe,
MutatorT5: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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