Struct libafl::stages::mutational::StdMutationalStage[][src]

pub struct StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
{ /* fields omitted */ }
Expand description

The default mutational stage

Implementations

impl<C, E, EM, I, M, R, S, Z> StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
[src]

pub fn new(mutator: M) -> Self[src]

Creates a new default mutational stage

Trait Implementations

impl<C: Clone, E: Clone, EM: Clone, I: Clone, M: Clone, R: Clone, S: Clone, Z: Clone> Clone for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
[src]

fn clone(&self) -> StdMutationalStage<C, E, EM, I, M, R, S, Z>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<C: Debug, E: Debug, EM: Debug, I: Debug, M: Debug, R: Debug, S: Debug, Z: Debug> Debug for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl<C, E, EM, I, M, R, S, Z> MutationalStage<C, E, EM, I, M, S, Z> for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
[src]

fn mutator(&self) -> &M[src]

The mutator, added to this stage

fn mutator_mut(&mut self) -> &mut M[src]

The list of mutators, added to this stage (as mutable ref)

fn iterations(&self, state: &mut S) -> usize[src]

Gets the number of iterations as a random number

fn perform_mutational(
    &mut self,
    fuzzer: &mut Z,
    executor: &mut E,
    state: &mut S,
    manager: &mut EM,
    corpus_idx: usize
) -> Result<(), Error>
[src]

Runs this (mutational) stage for the given testcase

impl<C, E, EM, I, M, R, S, Z> Stage<E, EM, S, Z> for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Corpus<I>,
    M: Mutator<I, S>,
    I: Input,
    R: Rand,
    S: HasClientPerfStats + HasCorpus<C, I> + HasRand<R>,
    Z: Evaluator<E, EM, I, S>, 
[src]

fn perform(
    &mut self,
    fuzzer: &mut Z,
    executor: &mut E,
    state: &mut S,
    manager: &mut EM,
    corpus_idx: usize
) -> Result<(), Error>
[src]

Run the stage

Auto Trait Implementations

impl<C, E, EM, I, M, R, S, Z> RefUnwindSafe for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: RefUnwindSafe,
    E: RefUnwindSafe,
    EM: RefUnwindSafe,
    I: RefUnwindSafe,
    M: RefUnwindSafe,
    R: RefUnwindSafe,
    S: RefUnwindSafe,
    Z: RefUnwindSafe

impl<C, E, EM, I, M, R, S, Z> Send for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Send,
    E: Send,
    EM: Send,
    I: Send,
    M: Send,
    R: Send,
    S: Send,
    Z: Send

impl<C, E, EM, I, M, R, S, Z> Sync for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Sync,
    E: Sync,
    EM: Sync,
    I: Sync,
    M: Sync,
    R: Sync,
    S: Sync,
    Z: Sync

impl<C, E, EM, I, M, R, S, Z> Unpin for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: Unpin,
    E: Unpin,
    EM: Unpin,
    I: Unpin,
    M: Unpin,
    R: Unpin,
    S: Unpin,
    Z: Unpin

impl<C, E, EM, I, M, R, S, Z> UnwindSafe for StdMutationalStage<C, E, EM, I, M, R, S, Z> where
    C: UnwindSafe,
    E: UnwindSafe,
    EM: UnwindSafe,
    I: UnwindSafe,
    M: UnwindSafe,
    R: UnwindSafe,
    S: UnwindSafe,
    Z: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<Tail, T> Prepend<T> for Tail[src]

type PreprendResult = Tail

The Resulting TupleList, of an Prepend::prepend() call, including the prepended entry. Read more

pub fn prepend(Self, T) -> (T, <Tail as Prepend<T>>::PreprendResult)[src]

Prepend a value to this tuple, returning a new tuple with prepended value.

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.