[][src]Struct byte_mutator::Stage

pub struct Stage {
    pub count: usize,
    pub iterations: Iterations,
    pub mutations: Vec<Mutation>,
}

Used to define groups of mutations, and how many mutations should be performed.

Fields

count: usize

Current number of iterations. This can start at > 0 if you want to reproduce something from an earlier run.

iterations: Iterations

Max number of iterations

mutations: Vec<Mutation>

Group of mutations, all of which are performed every time.

Methods

impl Stage[src]

pub fn new(
    count: usize,
    mutations: Vec<Mutation>,
    iterations: Iterations
) -> Self
[src]

Creates a new Stage

pub fn is_done(&self, num_bytes: usize) -> bool[src]

Returns whether the stage is complete

pub fn next(&mut self)[src]

Advances the internal state of the Stage

pub fn add_mutation(&mut self, mutation: Mutation)[src]

Add a mutation

Trait Implementations

impl Clone for Stage[src]

impl Default for Stage[src]

fn default() -> Self[src]

Default Stage with no mutations and unlimited iterations

impl Debug for Stage[src]

impl<'de> Deserialize<'de> for Stage[src]

Auto Trait Implementations

impl Send for Stage

impl Sync for Stage

impl Unpin for Stage

impl UnwindSafe for Stage

impl RefUnwindSafe for Stage

Blanket Implementations

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

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

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

type Owned = T

The resulting type after obtaining ownership.

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.

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.

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

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

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

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]