Trait MutableDistribution

Source
pub trait MutableDistribution<T> {
    type Error: Error;

    // Required method
    fn sample_mut<R>(&mut self, rng: &mut R) -> Result<T, Self::Error>
       where R: Rng + ?Sized;
}

Required Associated Types§

Required Methods§

Source

fn sample_mut<R>(&mut self, rng: &mut R) -> Result<T, Self::Error>
where R: Rng + ?Sized,

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.

Implementors§