prop_check_rs::prop

Function for_all_gen

Source
pub fn for_all_gen<A, F>(g: Gen<A>, test: F) -> Prop
where F: FnMut(A) -> bool + 'static, A: Clone + Debug + 'static,
Expand description

Returns a Prop that executes a function to evaluate properties using Gen.
Genを利用してプロパティを評価するため関数を実行するPropを返す

§Arguments

  • g - The Gen.
  • test - The function to evaluate the properties.

§Returns

  • Prop - The new Prop.