This story was originally published on Medium
Rust signed two’s complement integer types
Now let’s compare negative numbers of signed two’s complement from the above table (from -1 to -7) to Rust’s signed integers.
They are exactly the same except Rust uses the default 32-bit. Rust’s signed integer types are called the signed two’s complement integer types.