pub trait Mutator<I, S>: Named {
// Required method
fn mutate(
&mut self,
state: &mut S,
input: &mut I,
) -> Result<MutationResult, Error>;
// Provided method
fn post_exec(
&mut self,
_state: &mut S,
_new_corpus_id: Option<CorpusId>,
) -> Result<(), Error> { ... }
}
Expand description
A Mutator
takes an input, and mutates it.
Simple as that.