Struct puffin::fuzzer::stages::PuffinMutationalStage
source · pub struct PuffinMutationalStage<E, EM, I, M, Z> {
mutator: M,
phantom: PhantomData<(E, EM, I, Z)>,
max_iterations_per_stage: u64,
}
Expand description
The default mutational stage
Fields§
§mutator: M
§phantom: PhantomData<(E, EM, I, Z)>
§max_iterations_per_stage: u64
Implementations§
Trait Implementations§
source§impl<E: Clone, EM: Clone, I: Clone, M: Clone, Z: Clone> Clone for PuffinMutationalStage<E, EM, I, M, Z>
impl<E: Clone, EM: Clone, I: Clone, M: Clone, Z: Clone> Clone for PuffinMutationalStage<E, EM, I, M, Z>
source§fn clone(&self) -> PuffinMutationalStage<E, EM, I, M, Z>
fn clone(&self) -> PuffinMutationalStage<E, EM, I, M, Z>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<E: Debug, EM: Debug, I: Debug, M: Debug, Z: Debug> Debug for PuffinMutationalStage<E, EM, I, M, Z>
impl<E: Debug, EM: Debug, I: Debug, M: Debug, Z: Debug> Debug for PuffinMutationalStage<E, EM, I, M, Z>
source§impl<E, EM, I, M, Z> MutationalStage<E, EM, I, M, Z> for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
I: MutatedTransform<Self::Input, Self::State> + Clone,
impl<E, EM, I, M, Z> MutationalStage<E, EM, I, M, Z> for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
I: MutatedTransform<Self::Input, Self::State> + Clone,
source§fn mutator_mut(&mut self) -> &mut M
fn mutator_mut(&mut self) -> &mut M
The list of mutators, added to this stage (as mutable ref)
source§fn iterations(
&self,
state: &mut Z::State,
_corpus_idx: CorpusId,
) -> Result<u64, Error>
fn iterations( &self, state: &mut Z::State, _corpus_idx: CorpusId, ) -> Result<u64, Error>
Gets the number of iterations as a random number
source§impl<E, EM, I, M, Z> Stage<E, EM, Z> for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
I: MutatedTransform<Self::Input, Self::State> + Clone,
impl<E, EM, I, M, Z> Stage<E, EM, Z> for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
I: MutatedTransform<Self::Input, Self::State> + Clone,
source§impl<E, EM, I, M, Z> UsesState for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
impl<E, EM, I, M, Z> UsesState for PuffinMutationalStage<E, EM, I, M, Z>where
E: UsesState<State = Z::State>,
EM: UsesState<State = Z::State>,
M: Mutator<I, Z::State>,
Z: Evaluator<E, EM>,
Z::State: HasClientPerfMonitor + HasCorpus + HasRand,
Auto Trait Implementations§
impl<E, EM, I, M, Z> Freeze for PuffinMutationalStage<E, EM, I, M, Z>where
M: Freeze,
impl<E, EM, I, M, Z> RefUnwindSafe for PuffinMutationalStage<E, EM, I, M, Z>
impl<E, EM, I, M, Z> Send for PuffinMutationalStage<E, EM, I, M, Z>
impl<E, EM, I, M, Z> Sync for PuffinMutationalStage<E, EM, I, M, Z>
impl<E, EM, I, M, Z> Unpin for PuffinMutationalStage<E, EM, I, M, Z>
impl<E, EM, I, M, Z> UnwindSafe for PuffinMutationalStage<E, EM, I, M, Z>
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> CloneAny for T
impl<T> CloneAny for T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Tail, T> Prepend<T> for Tail
impl<Tail, T> Prepend<T> for Tail
§type PreprendResult = Tail
type PreprendResult = Tail
The Resulting [
TupleList
], of an [Prepend::prepend()
] call,
including the prepended entry.