Module proptest::bits [−][src]
Strategies for working with bit sets.
Besides BitSet
itself, this also defines strategies for all the primitive
integer types. These strategies are appropriate for integers which are used
as bit flags, etc; e.g., where the most reasonable simplification of 64
is 0
(clearing one bit) and not 63
(clearing one bit but setting 6
others). For integers treated as numeric values, see the corresponding
modules of the num
module instead.
Modules
bool_vec | |
i8 | |
i16 | |
i32 | |
i64 | |
isize | |
u8 | |
u16 | |
u32 | |
u64 | |
usize |
Structs
BitSetStrategy | Generates values as a set of bits between the two bounds. |
BitSetValueTree | Value tree produced by |
SampledBitSetStrategy | Generates bit sets with a particular number of bits set. |
Traits
BitSetLike | Trait for types which can be handled with |