Trait libafl::generators::Generator
source · pub trait Generator<I, S>where
I: Input,{
// Required method
fn generate(&mut self, state: &mut S) -> Result<I, Error>;
}Expand description
Generators can generate ranges of bytes.
Required Methods§
Implementors§
impl<'a, S> Generator<GramatronInput, S> for GramatronGenerator<'a, S>where S: HasRand,
impl<S> Generator<BytesInput, S> for RandBytesGenerator<S>where S: HasRand,
impl<S> Generator<BytesInput, S> for RandPrintablesGenerator<S>where S: HasRand,
impl<T, I, S> Generator<I, S> for Twhere T: Iterator<Item = I>, I: Input,
Iterators may be used as generators.
generate throws a Error::Empty if an input is requested but
Iterator::next returns None.