Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Apress/beginning-rust-2e
/ print_codes
Function
print_codes
Source Code/16-04.rs:7–11 ·
view source on GitHub ↗
(s: &str)
Source
from the content-addressed store, hash-verified
5
*/
6
fn main() {
7
fn print_codes(s: &str) {
8
for c in s.chars() {
9
println!(
"{}: {}"
, c, c as u32);
10
}
11
}
12
print_codes(
"ۏe"
);
13
}
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected