IIRC this is true only about casting.
In memory right now bool is UB. meaning no matter what you transmute to bool that is UB.
@rustlang
We need to combine the text on https://doc.rust-lang.org/std/primitive.bool.html … and https://doc.rust-lang.org/reference/types/boolean.html … ; we did define this!
-
-
Except that it takes 1 byte in memory, what else is defined?
-
True is 1 and false is 0
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.