A small collections of macros for adding try guards in rust
try_utils::try_return
```rust use tryutils::tryreturn;
fn myfunc1(val: Option
asserteq!(myfunc1(Some(10)), 10); // the expensive computation will not be run
fn myfunc2(val: Option
fn myfunc3(val: Option
try_utils::try_continue
```rust use tryutils::trycontinue;
'label: for _ in 0..10 { for _ in 0..10 { let : u32 = trycontinue!(None, 'label); panic!(); } panic!(); }
for _ in 0..10 { let val: u32 = trycontinue!(Some(10)); asserteq!(val, 10); } ```
try_utils::try_break
```rust use tryutils::trybreak;
'label: for _ in 0..10 { for _ in 0..10 { let : u32 = trybreak!(None, 'label); panic!(); } panic!(); }
for _ in 0..10 { let val: u32 = trybreak!(Some(10)); asserteq!(val, 10); } ```