Function proptest::bits::bool_vec::sampled [−][src]
pub fn sampled(
size: impl Into<SizeRange>,
bits: impl Into<SizeRange>
) -> SampledBitSetStrategy<Vec<bool>>
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
.