| Crates.io | derive_rand |
| lib.rs | derive_rand |
| version | 0.1.1 |
| created_at | 2015-02-03 11:30:23.420604+00 |
| updated_at | 2015-12-11 23:58:31.338387+00 |
| description | `#[derive]`-like functionality for the `rand::Rand` trait. |
| homepage | https://github.com/rust-lang/rand |
| repository | https://github.com/rust-lang/rand |
| max_upload_size | |
| id | 1340 |
| size | 7,238 |
#[derive]-like functionality for the rand::Rand trait.
#![feature(plugin)]
#[plugin] #[no_link] extern crate derive_rand;
extern crate rand;
#[derive_Rand]
struct Foo {
x: u8,
y: isize
}
#[derive_Rand]
enum Bar {
X(char),
Y(f64)
}