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/bin/thiserror.rs:18–23 ·
view source on GitHub ↗
(result: Result<i32>)
Source
from the content-addressed store, hash-verified
16
}
17
18
fn print(result: Result<i32>) {
19
match result {
20
Ok(n) => println!(
"The first doubled is {}"
, n),
21
Err(e) => println!(
"Error: {}"
, e),
22
}
23
}
24
25
fn main() {
26
let numbers = vec![
"42"
,
"93"
,
"18"
];
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected