pub trait Driver {
Show 17 methods fn gen_u8(&mut self, min: Bound<&u8>, max: Bound<&u8>) -> Option<u8>; fn gen_i8(&mut self, min: Bound<&i8>, max: Bound<&i8>) -> Option<i8>; fn gen_u16(&mut self, min: Bound<&u16>, max: Bound<&u16>) -> Option<u16>; fn gen_i16(&mut self, min: Bound<&i16>, max: Bound<&i16>) -> Option<i16>; fn gen_u32(&mut self, min: Bound<&u32>, max: Bound<&u32>) -> Option<u32>; fn gen_i32(&mut self, min: Bound<&i32>, max: Bound<&i32>) -> Option<i32>; fn gen_u64(&mut self, min: Bound<&u64>, max: Bound<&u64>) -> Option<u64>; fn gen_i64(&mut self, min: Bound<&i64>, max: Bound<&i64>) -> Option<i64>; fn gen_u128(&mut self, min: Bound<&u128>, max: Bound<&u128>) -> Option<u128>; fn gen_i128(&mut self, min: Bound<&i128>, max: Bound<&i128>) -> Option<i128>; fn gen_usize(
        &mut self,
        min: Bound<&usize>,
        max: Bound<&usize>
    ) -> Option<usize>; fn gen_isize(
        &mut self,
        min: Bound<&isize>,
        max: Bound<&isize>
    ) -> Option<isize>; fn gen_f32(&mut self, min: Bound<&f32>, max: Bound<&f32>) -> Option<f32>; fn gen_f64(&mut self, min: Bound<&f64>, max: Bound<&f64>) -> Option<f64>; fn gen_char(&mut self, min: Bound<&char>, max: Bound<&char>) -> Option<char>; fn gen_bool(&mut self, probability: Option<f32>) -> Option<bool>; fn gen<T>(&mut self) -> Option<T>
    where
        T: TypeGenerator
, { ... }
}
Expand description

Trait for driving the generation of a value

In a test engine, this is typically backed by a byte slice, but other drivers can be used instead, e.g. an RNG implementation.

Required Methods

Provided Methods

Generate a value with type T

Implementations on Foreign Types

Implementors