tiny_rng

Function rand_iter

Source
pub fn rand_iter<'a, T: 'static, Generator: Rand>(
    rng: &'a mut Generator,
    rand: fn(_: &mut Generator) -> T,
) -> impl 'a + Iterator<Item = T>