Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fn myfn() {
- loop {
- let okvalue = match mycomputation() {
- Ok(v) => v,
- Err(e) => {
- logging();
- continue;
- },
- };
- doworkwithmyvar();
- }
- }
- fn mycomputation() -> Result<u8, ()> {
- Ok(1)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement