Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ print
Function
print
0a_error_handling/rust/more_boilerplate.rs:54–59 ·
view source on GitHub ↗
(result: Result<i32>)
Source
from the content-addressed store, hash-verified
52
}
53
54
fn print(result: Result<i32>) {
55
match result {
56
Ok(n) => println!(
"The first doubled is {}"
, n),
57
Err(e) => println!(
"Error: {}"
, e),
58
}
59
}
60
61
fn main() {
62
let numbers = vec![
"42"
,
"93"
,
"18"
];
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected