pub enum DistributionSamplerKind<P>where
Standard: Distribution<P>,
P: SampleUniform,{
Standard(Standard),
Uniform(Uniform<P>),
Bernoulli(Bernoulli),
}
Variants
Standard(Standard)
Uniform(Uniform<P>)
Bernoulli(Bernoulli)
Auto Trait Implementations
impl<P> RefUnwindSafe for DistributionSamplerKind<P>where
<P as SampleUniform>::Sampler: RefUnwindSafe,
impl<P> Send for DistributionSamplerKind<P>where
<P as SampleUniform>::Sampler: Send,
impl<P> Sync for DistributionSamplerKind<P>where
<P as SampleUniform>::Sampler: Sync,
impl<P> Unpin for DistributionSamplerKind<P>where
<P as SampleUniform>::Sampler: Unpin,
impl<P> UnwindSafe for DistributionSamplerKind<P>where
<P as SampleUniform>::Sampler: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more