Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/QMHTMY/RustBook
/ main
Function
main
publication/code/chapter05/num2str_stk.rs:59–65 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
57
}
58
59
fn main() {
60
let num = 100;
61
let sb = num2str_stk(100, 2);
62
let so = num2str_stk(100, 8);
63
let sh = num2str_stk(100, 16);
64
println!(
"{num} = b{sb}, o{so}, x{sh}"
);
65
}
Callers
nothing calls this directly
Calls
1
num2str_stk
Function · 0.70
Tested by
no test coverage detected