pub trait TypeGenerator: Sized {
    fn generate<D: Driver>(driver: &mut D) -> Option<Self>;

    fn mutate<D: Driver>(&mut self, driver: &mut D) -> Option<()> { ... }
    fn gen() -> TypeValueGenerator<Self> { ... }
}
Expand description

Generate a value for a given type

Required Methods

Generates a value with the given driver

Provided Methods

Mutates an existing value with the given driver

Returns a generator for a given type

Implementations on Foreign Types

Implementors