pub struct CwiseRowDistribution<Cols: Shape, D> {
pub ncols: Cols,
pub dist: D,
}Fields§
§ncols: Cols§dist: DTrait Implementations§
Source§impl<Cols: Clone + Shape, D: Clone> Clone for CwiseRowDistribution<Cols, D>
impl<Cols: Clone + Shape, D: Clone> Clone for CwiseRowDistribution<Cols, D>
Source§fn clone(&self) -> CwiseRowDistribution<Cols, D>
fn clone(&self) -> CwiseRowDistribution<Cols, D>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T, Cols: Shape, D: Distribution<T>> Distribution<Row<Own<T, Cols>>> for CwiseRowDistribution<Cols, D>
impl<T, Cols: Shape, D: Distribution<T>> Distribution<Row<Own<T, Cols>>> for CwiseRowDistribution<Cols, D>
Source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Row<T, Cols>
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Row<T, Cols>
Generate a random value of
T, using rng as the source of randomness.Source§fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreimpl<Cols: Copy + Shape, D: Copy> Copy for CwiseRowDistribution<Cols, D>
Auto Trait Implementations§
impl<Cols, D> Freeze for CwiseRowDistribution<Cols, D>
impl<Cols, D> RefUnwindSafe for CwiseRowDistribution<Cols, D>where
Cols: RefUnwindSafe,
D: RefUnwindSafe,
impl<Cols, D> Send for CwiseRowDistribution<Cols, D>where
D: Send,
impl<Cols, D> Sync for CwiseRowDistribution<Cols, D>where
D: Sync,
impl<Cols, D> Unpin for CwiseRowDistribution<Cols, D>
impl<Cols, D> UnwindSafe for CwiseRowDistribution<Cols, D>where
Cols: UnwindSafe,
D: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more