Struct rand::distributions::DistMap [−][src]
pub struct DistMap<D, F, T, S> { /* fields omitted */ }Expand description
A distribution of values of type S derived from the distribution D
by mapping its output of type T through the closure F.
This struct is created by the Distribution::map method.
See its documentation for more.
Trait Implementations
impl<D, F, T, S> Distribution<S> for DistMap<D, F, T, S> where
D: Distribution<T>,
F: Fn(T) -> S, [src]
impl<D, F, T, S> Distribution<S> for DistMap<D, F, T, S> where
D: Distribution<T>,
F: Fn(T) -> S, [src]Generate a random value of T, using rng as the source of randomness.
Create an iterator that generates random values of T, using rng as
the source of randomness. Read more
Auto Trait Implementations
impl<D, F, T, S> RefUnwindSafe for DistMap<D, F, T, S> where
D: RefUnwindSafe,
F: RefUnwindSafe, impl<D, F, T, S> UnwindSafe for DistMap<D, F, T, S> where
D: UnwindSafe,
F: UnwindSafe,