Currently we can't do:
let vec: Vec<Wrapping<i32>> = rng.gen_iter().take(100).collect();
instead we have to do this:
let vec: Vec<Wrapping<i32>> = rng.gen_iter::<i32>().map(|i| Wrapping(i)).take(100).collect();
I think it would be a good idea to implement Rand for the Wrapping type.
Currently we can't do:
instead we have to do this:
I think it would be a good idea to implement Rand for the Wrapping type.