Struct rand::distributions::DistMap[][src]

pub struct DistMap<D, F, T, S> { /* fields omitted */ }

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: Debug, F: Debug, T: Debug, S: Debug> Debug for DistMap<D, F, 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]

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> Send for DistMap<D, F, T, S> where
    D: Send,
    F: Send

impl<D, F, T, S> Sync for DistMap<D, F, T, S> where
    D: Sync,
    F: Sync

impl<D, F, T, S> Unpin for DistMap<D, F, T, S> where
    D: Unpin,
    F: Unpin

impl<D, F, T, S> UnwindSafe for DistMap<D, F, T, S> where
    D: UnwindSafe,
    F: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]