proptest

Module bits

source
Expand description

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§

Structs§

Traits§

  • Trait for types which can be handled with BitSetStrategy.