Derive Macro lain::NewFuzzed [−][src]
#[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
ⓘ
extern crate rand; #[derive(NewFuzzed)] enum Foo { Bar, Baz, } let choice: Foo = rand::gen();