To create a macro that returns true if an enum matches a variant, I\'ve found the following solution.
macro_rules! is