Quantcast
Channel: How do I convert a boolean to an integer in Rust? - Stack Overflow
Viewing all articles
Browse latest Browse all 5

How do I convert a boolean to an integer in Rust?

$
0
0

How do I convert a boolean to an integer in Rust? As in, true becomes 1, and false becomes 0.


Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images