Trait synfuzz::Generator

source ·
pub trait Generator: Debug {
    fn generate(&self) -> Vec<u8>;
    fn negate(&self) -> Vec<u8>;
}
Expand description

A trait for all Generators to implement. This allows pervasive use of impl trait throughout the implementations of the various Generators and allows not specifying concrete types.

Required Methods§

Generate a value from the specific implementation of the Generator

Generate a value of the negation of the specified Generator

Implementors§