[−][src]Trait bolero_generator::driver::Driver
Trait for driving the generation of a value
In fuzzing engine, this is typically backed by a byte slice, but other drivers can be used instead, e.g. an RNG implementation.
Required methods
fn mode(&self) -> DriverMode
Return the mode set for the driver
fn fill_bytes(&mut self, bytes: &mut [u8]) -> Option<()>
Fill the target bytes with the driver state
Provided methods
fn gen<T: TypeGenerator>(&mut self) -> Option<T>
Generate a value with type T