You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Distinguishable name to prevent confusion with other crates.
Rollable::die allows nice integration with exiting combinators.
Rollable::uses_limit allows to implement a reliable strategy to respect Limit for the whole data structure.
Recursive data structures are a big problem for arbitrary::Arbitrary. I can provide a better experience by splitting up Limit when recursing into the data structure.
The text was updated successfully, but these errors were encountered:
I lost hope that I can use a trait from another crate for that purpose:
quickcheck::Arbitrary
recently, see Remove support for quickcheck #4.arbitrary::Arbitrary
at some point, but it's far from optimal, see Find a way to integrate with arbitrary #6.So let's introduce an own trait (+ derive macro). It could look like this:
Remarks:
Rollable::die
allows nice integration with exiting combinators.Rollable::uses_limit
allows to implement a reliable strategy to respectLimit
for the whole data structure.arbitrary::Arbitrary
. I can provide a better experience by splitting upLimit
when recursing into the data structure.The text was updated successfully, but these errors were encountered: