Function proptest::bits::i8::sampled

source ·
pub fn sampled(
    size: impl Into<SizeRange>,
    bits: impl Into<SizeRange>
) -> SampledBitSetStrategy<i8>
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 if size includes a value that is greater than the number of bits in bits.