derive_is_enum_variant
Rust
★ 22
updated 5y ago
Automatically derives `is_dog` and `is_cat` methods for `enum Pet { Dog, Cat }`.
No plain-English explanation yet — one is being written right now. Check back in a minute.