pub struct ByteMutator { /* private fields */ }
Expand description
A defined set of stages of mutations
Implementations§
Source§impl ByteMutator
impl ByteMutator
pub fn with_stages(self, stages: Vec<Stage>) -> Self
Sourcepub fn new_from_config(config: FuzzConfig) -> Self
pub fn new_from_config(config: FuzzConfig) -> Self
Creates a new ByteMutator
and consumes the stages
configured in config
Sourcepub fn remaining_stages(&self) -> usize
pub fn remaining_stages(&self) -> usize
Number of outstanding stages
Sourcepub fn next(&mut self)
pub fn next(&mut self)
Advance the mutation one step. Resets outstanding changes, advances the stage state, and mutates using all mutators defined in the stage. todo: Make this an actual iterator
pub fn mutate(&self, bytes: &mut [u8])
Trait Implementations§
Source§impl Clone for ByteMutator
impl Clone for ByteMutator
Source§fn clone(&self) -> ByteMutator
fn clone(&self) -> ByteMutator
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 moreAuto Trait Implementations§
impl Freeze for ByteMutator
impl RefUnwindSafe for ByteMutator
impl Send for ByteMutator
impl Sync for ByteMutator
impl Unpin for ByteMutator
impl UnwindSafe for ByteMutator
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