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

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>