Trait nekolib_doc::random::randgen::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,

Object Safety§

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§