prop_check_rs::rng

Trait NextRandValue

Source
pub trait NextRandValue
where Self: Sized,
{ // Required methods fn next_i64(&self) -> (i64, Self); fn next_i32(&self) -> (i32, Self); fn next_i16(&self) -> (i16, Self); fn next_i8(&self) -> (i8, Self); // Provided methods fn next_u64(&self) -> (u64, Self) { ... } fn next_u32(&self) -> (u32, Self) { ... } fn next_u16(&self) -> (u16, Self) { ... } fn next_u8(&self) -> (u8, Self) { ... } fn next_f64(&self) -> (f64, Self) { ... } fn next_f32(&self) -> (f32, Self) { ... } fn next_bool(&self) -> (bool, Self) { ... } }
Expand description

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

Required Methods§

Source

fn next_i64(&self) -> (i64, Self)

next_i64 generates a tuple of i64 and Self.
next_i64i64Selfのタプルを生成します。

Source

fn next_i32(&self) -> (i32, Self)

next_i32 generates a tuple of i32 and Self.
next_i32i32Selfのタプルを生成します。

Source

fn next_i16(&self) -> (i16, Self)

next_i16 generates a tuple of i16 and Self.
next_i16i16Selfのタプルを生成します。

Source

fn next_i8(&self) -> (i8, Self)

next_i8 generates a tuple of i8 and Self.
next_i8i8Selfのタプルを生成します。

Provided Methods§

Source

fn next_u64(&self) -> (u64, Self)

next_u64 generates a tuple of u64 and Self.
next_u64u64Selfのタプルを生成します。

Source

fn next_u32(&self) -> (u32, Self)

next_u32 generates a tuple of u32 and Self.
next_u32u32Selfのタプルを生成します。

Source

fn next_u16(&self) -> (u16, Self)

next_u16 generates a tuple of u16 and Self.
next_u16u16Selfのタプルを生成します。

Source

fn next_u8(&self) -> (u8, Self)

next_u8 generates a tuple of u8 and Self.
next_u8u8Selfのタプルを生成します。

Source

fn next_f64(&self) -> (f64, Self)

next_f64 generates a tuple of f64 and Self.
next_f64f64Selfのタプルを生成します。

Source

fn next_f32(&self) -> (f32, Self)

next_f32 generates a tuple of f32 and Self.
next_f32f32Selfのタプルを生成します。

Source

fn next_bool(&self) -> (bool, Self)

next_bool generates a tuple of bool and Self.
next_boolboolSelfのタプルを生成します。

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.

Implementors§