[−][src]Derive Macro lain::NewFuzzed
#[derive(NewFuzzed)] { // Attributes available to this derive: #[lain] }
Implements rand::distributions::Standard for enums that derive this trait.
This will allow you to use rand::gen()
to randomly select an enum value.
Example
ⓘThis example deliberately fails to compile
extern crate rand; #[derive(NewFuzzed)] enum Foo { Bar, Baz, } let choice: Foo = rand::gen();