Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ print
Function
print
0a_error_handling/rust/using_eyre/src/main.rs:9–14 ·
view source on GitHub ↗
(result: Result<i32>)
Source
from the content-addressed store, hash-verified
7
}
8
9
fn print(result: Result<i32>) {
10
match result {
11
Ok(n) => println!(
"The first doubled is {}"
, n),
12
Err(e) => println!(
"Error: {}"
, e),
13
}
14
}
15
16
fn main() {
17
let numbers = vec![
"42"
,
"93"
,
"18"
];
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected