Trait bolero_engine::TypeGenerator
source · pub trait TypeGenerator: Sized + 'static {
// Required method
fn generate<D>(driver: &mut D) -> Option<Self>
where D: Driver;
// Provided methods
fn mutate<D>(&mut self, driver: &mut D) -> Option<()>
where D: Driver { ... }
fn driver_cache<D>(self, driver: &mut D)
where D: Driver { ... }
fn gen() -> TypeValueGenerator<Self> { ... }
}
Expand description
Generate a value for a given type
Required Methods§
Provided Methods§
sourcefn mutate<D>(&mut self, driver: &mut D) -> Option<()>where
D: Driver,
fn mutate<D>(&mut self, driver: &mut D) -> Option<()>where
D: Driver,
Mutates an existing value with the given driver
fn driver_cache<D>(self, driver: &mut D)where
D: Driver,
sourcefn gen() -> TypeValueGenerator<Self>
fn gen() -> TypeValueGenerator<Self>
Returns a generator for a given type
Object Safety§
This trait is not object safe.