| 1 |
# Complete `BitOrder` Verification |
| 2 |
|
| 3 |
This function checks some [`BitOrder`] implementation’s behavior on each of the |
| 4 |
[`BitRegister`] types present on the target, and reports any violation of the |
| 5 |
rules that it detects. |
| 6 |
|
| 7 |
## Type Parameters |
| 8 |
|
| 9 |
- `O`: The `BitOrder` implementation being tested. |
| 10 |
|
| 11 |
## Parameters |
| 12 |
|
| 13 |
- `verbose`: Controls whether the test should print diagnostic information to |
| 14 |
standard output. If this is false, then the test only prints a message on |
| 15 |
failure; if it is true, it emits a message for every test it executes. |
| 16 |
|
| 17 |
## Panics |
| 18 |
|
| 19 |
This panics when it detects a violation of the `BitOrder` rules. If it returns |
| 20 |
normally, then the implementation is correct. |
| 21 |
|
| 22 |
[`BitOrder`]: crate::order::BitOrder |
| 23 |
[`BitRegister`]: crate::mem::BitRegister |