use stdpython :: * ; pub fn helper1 () -> Result < () , PyException > { print (& ("Helper 1")) ; Ok (()) } pub fn helper2 () -> Result < () , PyException > { print (& ("Helper 2")) ; Ok (()) } fn main () { let __rython_result = (|| -> Result < () , PyException > { print (& ("Starting execution")) ; helper1 () ? ; helper2 () ? ; print (& ("Finished execution")) ; Ok (()) }) () ; if let Err (e) = __rython_result { eprintln ! ("{}" , e) ; std :: process :: exit (1) ; } }