prop_check_rs::rng

Trait RandGen

Source
pub trait RandGen<T: NextRandValue>
where Self: Sized,
{ // Required method fn rnd_gen(rng: T) -> (Self, T); }
Expand description

RandGen is a trait to generate random values.
RandGenはランダムな値を生成するためのトレイトです。

Required Methods§

Source

fn rnd_gen(rng: T) -> (Self, T)

rnd_gen generates a tuple of Self and T.
rnd_genSelfTのタプルを生成します。

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<T: NextRandValue> RandGen<T> for bool

Source§

fn rnd_gen(rng: T) -> (Self, T)

Source§

impl<T: NextRandValue> RandGen<T> for f32

Source§

fn rnd_gen(rng: T) -> (Self, T)

Source§

impl<T: NextRandValue> RandGen<T> for i16

Source§

fn rnd_gen(rng: T) -> (Self, T)

Source§

impl<T: NextRandValue> RandGen<T> for i32

Source§

fn rnd_gen(rng: T) -> (Self, T)

Source§

impl<T: NextRandValue> RandGen<T> for i64

Source§

fn rnd_gen(rng: T) -> (Self, T)

Source§

impl<T: NextRandValue> RandGen<T> for u32

Source§

fn rnd_gen(rng: T) -> (Self, T)

Implementors§