Trait prop_check_rs::rng::NextRandValue
source · pub trait NextRandValuewhere
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§
sourcefn next_i64(&self) -> (i64, Self)
fn next_i64(&self) -> (i64, Self)
next_i64 generates a tuple of i64 and Self.
next_i64はi64とSelfのタプルを生成します。
sourcefn next_i32(&self) -> (i32, Self)
fn next_i32(&self) -> (i32, Self)
next_i32 generates a tuple of i32 and Self.
next_i32はi32とSelfのタプルを生成します。
Provided Methods§
sourcefn next_u64(&self) -> (u64, Self)
fn next_u64(&self) -> (u64, Self)
next_u64 generates a tuple of u64 and Self.
next_u64はu64とSelfのタプルを生成します。
sourcefn next_u32(&self) -> (u32, Self)
fn next_u32(&self) -> (u32, Self)
next_u32 generates a tuple of u32 and Self.
next_u32はu32とSelfのタプルを生成します。
sourcefn next_u16(&self) -> (u16, Self)
fn next_u16(&self) -> (u16, Self)
next_u16 generates a tuple of u16 and Self.
next_u16はu16とSelfのタプルを生成します。
sourcefn next_u8(&self) -> (u8, Self)
fn next_u8(&self) -> (u8, Self)
next_u8 generates a tuple of u8 and Self.
next_u8はu8とSelfのタプルを生成します。
sourcefn next_f64(&self) -> (f64, Self)
fn next_f64(&self) -> (f64, Self)
next_f64 generates a tuple of f64 and Self.
next_f64はf64とSelfのタプルを生成します。
Object Safety§
This trait is not object safe.