MCPcopy Index your code
hub / github.com/bedroombuilds/python2rust / print

Function print

0a_error_handling/rust/boilerplate.rs:23–28  ·  view source on GitHub ↗
(result: Result<i32>)

Source from the content-addressed store, hash-verified

21}
22
23fn print(result: Result<i32>) {
24 match result {
25 Ok(n) => println!("The first doubled is {}", n),
26 Err(e) => println!("Error: {}", e),
27 }
28}
29
30fn main() {
31 let numbers = vec!["42", "93", "18"];

Callers 15

mainFunction · 0.70
goFunction · 0.50
pg_blocking.pyFile · 0.50
elemtree.pyFile · 0.50
minidom.pyFile · 0.50
dicts.pyFile · 0.50
defaultdict.pyFile · 0.50
sqlite.pyFile · 0.50
__del__Method · 0.50
defaults.pyFile · 0.50
super.pyFile · 0.50
aFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected