#[derive(EnumToGetters)]
Expand description
Macro EnumToGetters
Derives functions of the form fn to_{variant_name}(self) -> ...
checking
that an enumeration instance is of the proper variant and returning its
fields (while consuming the instance).
Also see the comments for crate::derive_enum_is_a