easy_switch
A macro to emulate switch statements in C-style languages. Get rid of those long
if
/else if
chains!
Syntax
Use the switch!
macro to get started! This will look like a match
expression,
but of course does no actual pattern matching.
use switch;
let switchable = new;
let result = switch! ;
assert_eq!;
Check out the docs for more information on this macro.
License
This crate is licensed under the MIT license.