Struct ndarray_rand::rand::distributions::DistMap
source · pub struct DistMap<D, F, T, S> { /* private fields */ }
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§
source§impl<D, F, T, S> Distribution<S> for DistMap<D, F, T, S>where
D: Distribution<T>,
F: Fn(T) -> S,
impl<D, F, T, S> Distribution<S> for DistMap<D, F, T, S>where
D: Distribution<T>,
F: Fn(T) -> S,
Auto Trait Implementations§
impl<D, F, T, S> Freeze for DistMap<D, F, T, S>
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>
impl<D, F, T, S> Sync for DistMap<D, F, T, S>
impl<D, F, T, S> Unpin for DistMap<D, F, T, S>
impl<D, F, T, S> UnwindSafe for DistMap<D, F, T, S>where
D: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more