Struct Map
pub struct Map<D, F, T, S> { /* private fields */ }
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
impl<D, F, T, S> Distribution<S> for Map<D, F, T, S>
where
D: Distribution<T>,
F: Fn(T) -> S,
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> S
impl<D: Debug, F: Debug, T: Debug, S: Debug> Debug for Map<D, F, T, S>
fn fmt(&self, f: &mut Formatter<'_>) -> Result