Programming/Two's Complement/Wrapping
- values greater than the maximum value the type can hold “wrap around” to the minimum of the values the type can hold. In the case of a
u8, the value 256 becomes 0, the value 257 becomes 1, and so on.
u8, the value 256 becomes 0, the value 257 becomes 1, and so on.