pub struct Map<D, F, T, S> { /* private fields */ }
Expand description
A Distribution
which maps sampled values to type S
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 Map<D, F, T, S>where
D: Distribution<T>,
F: Fn(T) -> S,
impl<D, F, T, S> Distribution<S> for Map<D, F, T, S>where
D: Distribution<T>,
F: Fn(T) -> S,
Auto Trait Implementations§
impl<D, F, T, S> Freeze for Map<D, F, T, S>
impl<D, F, T, S> RefUnwindSafe for Map<D, F, T, S>where
D: RefUnwindSafe,
F: RefUnwindSafe,
impl<D, F, T, S> Send for Map<D, F, T, S>
impl<D, F, T, S> Sync for Map<D, F, T, S>
impl<D, F, T, S> Unpin for Map<D, F, T, S>
impl<D, F, T, S> UnwindSafe for Map<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