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
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.