Closed jturner314 closed 5 years ago
Rust guarantees that the size and alignment of bool is 1, the bitwise representation of false is 0x00, and the bitwise representation of true is 0x01.
bool
1
false
0x00
true
0x01
Rust guarantees that the size and alignment of
bool
is1
, the bitwise representation offalse
is0x00
, and the bitwise representation oftrue
is0x01
.