Is there anything in Rust to convert a binary string to an integer?

前端 未结 0 1903
一向
一向 2020-12-18 20:38

My binary resides as a string right now, I was hoping to format! it as an integer the same way I formatted my integer to binary: format!(\"{:b}\", number)

相关标签:
回答
  • 消灭零回复
提交回复
热议问题