macro_rules! gen_is { ( $name:ident, $variant:pat ) => { ... }; }
Generate an is_* type-checking method.
is_*