[][src]Struct rand::distributions::DistIter

pub struct DistIter<'a, D: 'a, R: 'a, T> { /* fields omitted */ }

An iterator that generates random values of T with distribution D, using R as the source of randomness.

This struct is created by the sample_iter method on [Distribution]. See its documentation for more.

Trait Implementations

impl<'a, D, R, T> Iterator for DistIter<'a, D, R, T> where
    D: Distribution<T>,
    R: Rng + 'a, 
[src]

type Item = T

The type of the elements being iterated over.

impl<'a, D: Debug + 'a, R: Debug + 'a, T: Debug> Debug for DistIter<'a, D, R, T>[src]

impl<'a, D, R, T> FusedIterator for DistIter<'a, D, R, T> where
    D: Distribution<T>,
    R: Rng + 'a, 
[src]

Auto Trait Implementations

impl<'a, D, R, T> Send for DistIter<'a, D, R, T> where
    D: Sync,
    R: Send,
    T: Send

impl<'a, D, R, T> Unpin for DistIter<'a, D, R, T> where
    T: Unpin

impl<'a, D, R, T> Sync for DistIter<'a, D, R, T> where
    D: Sync,
    R: Sync,
    T: Sync

impl<'a, D, R, T> !UnwindSafe for DistIter<'a, D, R, T>

impl<'a, D, R, T> RefUnwindSafe for DistIter<'a, D, R, T> where
    D: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe

Blanket Implementations

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]