Struct prop_check_rs::gen::Gen
source · pub struct Gen<A> { /* private fields */ }Expand description
Generator that generates values.
値を生成するジェネレータ。
Implementations
sourceimpl<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に関数を適用します。
Trait Implementations
Auto Trait Implementations
impl<A> !RefUnwindSafe for Gen<A>
impl<A> !Send for Gen<A>
impl<A> !Sync for Gen<A>
impl<A> Unpin for Gen<A>
impl<A> !UnwindSafe for Gen<A>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more