Simple Macros, changing the flow of development:
kill!( flow )panicsexit!( flow )returns::default()next!( flow )continueshold!( flow )breaks
Flow can be:
- Option
..!{ inner = option }same asif Some(inner) = option {..} - Result
..!{ inner = result }same asif Ok(inner) = option {..} - bool
..!{ if bool }same asif bool {..}
Example
[]
= "0.1"
use *;
Also..
..implements the trait YayNay for Result, Option and bool with those methods:
.yay()returnstrueifOk(..)Some(..)ortrue.nay()returnstruefor the negative counter part