pub fn sampled(
    size: impl Into<SizeRange>,
    bits: impl Into<SizeRange>
) -> SampledBitSetStrategy<BitSet>
Expand description

Create a strategy which generates values where bits within the bounds given by bits may be set. The number of bits that are set is chosen to be in the range given by size.

Panics

Panics if size includes a value that is greater than the number of bits in bits.