Y
Hacker News
new
|
ask
|
show
|
jobs
by
GrantMoyer
651 days ago
You can put the use statement in the function with the match, or even limit the scope further:
{ use MyEnum::*; match my_enum {…} }