Function proptest_quickcheck_interop::from_qc [] [src]

pub fn from_qc<A: Arbitrary + Debug>() -> QCStrategy<A>

Constructs a new Strategy for any type that implements quickcheck's Arbitrary trait as well as Debug. You may use this to gain interoperability by reusing implementations of Arbitrary that you've already defined for some type.

Using this version, the size parameter controlling the size of inputs will be the default one used by quickcheck. This parameter is passed to the implementation of Arbitrary. If you want to provide some other value, you may instead use from_qc_sized.