2 ms·
I’ve never done this but this is a great point. I think I’d avoid doing this though because variants often have really short, reusable/general names (leaning in
by hardwaresofton 2y ago
I’ve never done this but this is a great point. I think I’d avoid doing this though because variants often have really short, reusable/general names (leaning into the overall type name being close)
- GrantMoyer 2y agoYou can put the use statement in the function with the match, or even limit the scope further: { use MyEnum::*; match my_enum {…} }