2 ms·
You can put the use statement in the function with the match, or even limit the scope further: { use MyEnum::*; match my_enum {…} }
by GrantMoyer 2y ago
You can put the use statement in the function with the match, or even limit the scope further:
{
use MyEnum::*;
match my_enum {…}
}