SHARE
TWEET

Untitled

a guest Jul 21st, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn myfn() {
  2.     loop {
  3.         let okvalue = match mycomputation() {
  4.             Ok(v) => v,
  5.        
  6.             Err(e) => {
  7.                 logging();
  8.                 continue;
  9.             },
  10.         };
  11.        
  12.         doworkwithmyvar();
  13.     }
  14. }
  15.  
  16. fn mycomputation() -> Result<u8, ()> {
  17.     Ok(1)
  18. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top