Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ main
Function
main
code/chapter03/base_converter.rs:54–58 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
52
}
53
54
fn main() {
55
let bin_str: String = base_converter(10, 2);
56
let hex_str: String = base_converter(43, 16);
57
println!(
"10 is b{bin_str}, 43 is x{hex_str}"
);
58
}
Callers
nothing calls this directly
Calls
1
base_converter
Function · 0.70
Tested by
no test coverage detected