[−][src]Struct byte_mutator::Stage
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]
count: usize,
mutations: Vec<Mutation>,
iterations: Iterations
) -> Self
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]
impl Debug for Stage
[src]
impl<'de> Deserialize<'de> for Stage
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,