cond
Rust macro to use a match-like syntax as a elegant alternative to nesting if-else statement.
This was
example:
let a = 195
cond! ;
let b = ""
let result = cond! ;
usage
You can just add the crate with
Or just add the 4 line macro in your project:
credits
Credits to github.com/Esper89 for essentially making the whole macro in the Rust discord server.