Struct prop_check_rs::gen::Gen
source · pub struct Gen<A> { /* private fields */ }Expand description
Generator that generates values.
値を生成するジェネレータ。
Implementations§
source§impl<A: Clone + 'static> Gen<A>
impl<A: Clone + 'static> Gen<A>
sourcepub fn run(self, rng: RNG) -> (A, RNG)
pub fn run(self, rng: RNG) -> (A, RNG)
Evaluates expressions held by the Gen and generates values.
Genが保持する式を評価し値を生成します。
sourcepub fn new<B>(b: State<RNG, B>) -> Gen<B>
pub fn new<B>(b: State<RNG, B>) -> Gen<B>
Generate a Gen by specifying a State.
Stateを指定してGenを生成します。
sourcepub fn map<B, F>(self, f: F) -> Gen<B>where
F: Fn(A) -> B + 'static,
B: Clone + 'static,
pub fn map<B, F>(self, f: F) -> Gen<B>where
F: Fn(A) -> B + 'static,
B: Clone + 'static,
Applies a function to Gen.
Genに関数を適用します。