[][src]Struct rand::Generator

pub struct Generator<'a, T, R: 'a> { /* 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>[src]

type Item = T

The type of the elements being iterated over.

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

Auto Trait Implementations

impl<'a, T, R> Send for Generator<'a, T, R> where
    R: Send

impl<'a, T, R> Unpin for Generator<'a, T, R>

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

impl<'a, T, R> !UnwindSafe for Generator<'a, T, R>

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

Blanket Implementations

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]