Struct rand::Generator [-] [+] [src]

pub struct Generator<'a, T, R: 'a> {
    // some fields omitted
}

Iterator which will generate a stream of random items.

This iterator is created via the gen_iter method on Rng.

Trait Implementations

impl<'a, T: Rand, R: Rng> Iterator for Generator<'a, T, R>

type Item = T

fn next(&mut self) -> Option<T>

fn size_hint(&self) -> (usize, Option<usize>)