MCPcopy 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
59fn 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_stkFunction · 0.70

Tested by

no test coverage detected