pub struct Gens;
Expand description

Factory responsibility for generating Gens.
Genを生成するためのファクトリ責務。

Implementations

Generates a Gen that returns ().
()を返すGenを生成します。

Generates a Gen that returns a value.
値を返すGenを生成します。

Generates a Gen that returns a value from a function.
関数が返す値を返すGenを生成します。

Generates a Gen that wraps the value of Gen into Option.
Genの値をOptionにラップするGenを生成します。

Generates a Gen that returns Some or None based on the value of Gen.
Genの値を元にSomeもしくはNoneを返すGenを生成します。

Generates a Gen that returns Either based on two Gens.
二つのGenを元にEitherを返すGenを生成します。

Generates a Gen that produces values according to a specified ratio.
指定の比率によって値を生成するGenを生成します。

Generates a Gen that produces a value based on the specified ratio and Gen.
指定された比率とGenに基づき値を生成するGenを生成します。

Generates a Gen whose elements are the values generated by the specified number of Gen.
指定した個数のGenによって生成された値を要素とするGenを生成します。

Generates a Gen that returns a single value of a certain type.
ある型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type i64.
i64型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type u64.
u64型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type i32.
i32型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type u32.
u32型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type i16.
i16型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type u16.
u16型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type i8.
i8型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type u8.
u8型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type char.
char型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type bool.
bool型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type f64.
f64型の値を一つ返すGenを生成します。

Generates a Gen that returns a single value of type f32.
f32型の値を一つ返すGenを生成します。

Generates a Gen that returns a value selected at random from a specified set of Gen.
指定されたGenの集合からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from the specified set of values.
指定された値の集合からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from the specified maximum and minimum ranges of generic type.
指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type char.
char型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type i64.
i64型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type u64.
u64型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type i32.
i32型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type u32.
u32型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type i16.
i16型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type u16.
u16型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type i8.
i8型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type u8.
u8型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type f64.
f64型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected value from a specified maximum and minimum range of type f32.
f32型の指定された最大・最小の範囲からランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one even number randomly selected from a specified range of values.
指定された値の範囲から偶数をランダムに一つ選択した値を返すGenを生成します。

Generates a Gen that returns one randomly selected odd number from a specified range of values.
指定された値の範囲から奇数をランダムに一つ選択した値を返すGenを生成します。

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.