Crate rand_derive[][src]

Deprecated since 0.5.0

: this crate is deprecated without replacement

Support for #[derive(Rand)] (deprecated)

Both the Rand trait and the derive(Rand) macro are deprecated.

Examples

extern crate rand;
#[macro_use]
extern crate rand_derive;

#[derive(Rand, Debug)]
struct MyStruct {
    a: i32,
    b: u32,
}

fn main() {
    println!("{:?}", rand::random::<MyStruct>());
}

Functions

rand_derive [
Deprecated
]