Skip to main content

UniformExt

Trait UniformExt 

Source
pub trait UniformExt: Uniform {
    // Provided method
    fn rand_option<R>(rng: &mut R) -> Option<Self>
       where R: Rng + ?Sized { ... }
}

Provided Methods§

Source

fn rand_option<R>(rng: &mut R) -> Option<Self>
where R: Rng + ?Sized,

Generates a random Option (50/50 chance of Some or None)

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> UniformExt for T
where T: Uniform,