Gen

Trait Gen 

Source
pub trait Gen {
    type Output;

    // Required method
    fn generate<R>(&self, rng: &mut R) -> Self::Output
       where R: Rng;
}

Required Associated Types§

Required Methods§

Source

fn generate<R>(&self, rng: &mut R) -> Self::Output
where R: Rng,

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.

Implementations on Foreign Types§

Source§

impl Gen for Range<i32>

Source§

type Output = i32

Source§

fn generate<R>(&self, rng: &mut R) -> <Range<i32> as Gen>::Output
where R: Rng,

Implementors§