derive_rand

Crates.ioderive_rand
lib.rsderive_rand
version0.1.1
sourcesrc
created_at2015-02-03 11:30:23.420604
updated_at2015-12-11 23:58:31.338387
description`#[derive]`-like functionality for the `rand::Rand` trait.
homepagehttps://github.com/rust-lang/rand
repositoryhttps://github.com/rust-lang/rand
max_upload_size
id1340
size7,238
Alex Crichton (alexcrichton)

documentation

http://doc.rust-lang.org/rand

README

#[derive]-like functionality for the rand::Rand trait.

Example

#![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)
}
Commit count: 3170

cargo fmt