Struct Iter
pub struct Iter<D, R, T> { /* private fields */ }
An iterator over a Distribution
This iterator yields random values of type T with distribution D
from a random generator of type R.
Construct this struct using Distribution::sample_iter or
RngExt::sample_iter. It is also used by RngExt::random_iter and
crate::random_iter.
Trait Implementations
impl<D, R, T> FusedIterator for Iter<D, R, T>
where
D: Distribution<T>,
R: Rng,
impl<D, R, T> Iterator for Iter<D, R, T>
where
D: Distribution<T>,
R: Rng,
type Item = T;fn next(&mut self) -> Option<T>fn size_hint(&self) -> (usize, Option<usize>)
impl<D: Debug, R: Debug, T: Debug> Debug for Iter<D, R, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result