👎Deprecated since 0.5.0: this crate is deprecated without replacement
Expand description
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>());
}Derive Macros§
- Rand
Deprecated