[−][src]Trait bolero_engine::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>(&mut self) -> Option<T> where
T: TypeGenerator,
T: TypeGenerator,
Generate a value with type T
Implementations on Foreign Types
impl<R> Driver for ForcedRng<R> where
R: RngCore,
[src]
R: RngCore,
fn mode(&self) -> DriverMode
[src]
fn fill_bytes(&mut self, bytes: &mut [u8]) -> Option<()>
[src]
impl<R> Driver for DirectRng<R> where
R: RngCore,
[src]
R: RngCore,