pub trait DistributionTransform<T>: Distribution<T> {
// Provided methods
fn add<D: Distribution<T>>(self, other: D) -> Composed<T, Self, D>
where Self: Sized { ... }
fn multiply<D: Distribution<T>>(self, other: D) -> Composed<T, Self, D>
where Self: Sized { ... }
fn mix<D: Distribution<T>>(
self,
other: D,
weight: f64,
) -> Composed<T, Self, D>
where Self: Sized { ... }
fn map<F>(self, f: F) -> Composed<T, Self, Self>
where Self: Sized,
F: Transform<T> + Send + Sync + 'static { ... }
}
Provided Methods§
fn add<D: Distribution<T>>(self, other: D) -> Composed<T, Self, D>where
Self: Sized,
fn multiply<D: Distribution<T>>(self, other: D) -> Composed<T, Self, D>where
Self: Sized,
fn mix<D: Distribution<T>>(self, other: D, weight: f64) -> Composed<T, Self, D>where
Self: Sized,
fn map<F>(self, f: F) -> Composed<T, Self, Self>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.