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のタプルを生成します。

Object Safety§

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§